Changeset 1182
- Timestamp:
- 01/06/08 12:10:22 (11 months ago)
- Files:
-
- trunk/lib/merb/mixins/inline_partial.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/merb/mixins/inline_partial.rb
r1176 r1182 16 16 17 17 if with = opts.delete(:with) 18 as = opts.delete(:as) || template.match(/(.*\/_)([^\.]*)/)[2]19 @_merb_partial_locals = opts 18 as = opts.delete(:as) || found_template.match(/(.*\/_)([^\.]*)/)[2] 19 @_merb_partial_locals = opts 20 20 sent_template = [with].flatten.map do |temp| 21 21 @_merb_partial_locals[as.to_sym] = temp
