Commit 0d5cbfb2181e31e5a183581fbd70e3077f36606d

Authored by Antonio Terceiro
1 parent f6e7559f

rails3: add mandatory argument to block passed to instance_eval

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/profile_info_block.rb
@@ -10,7 +10,7 @@ class ProfileInfoBlock < Block @@ -10,7 +10,7 @@ class ProfileInfoBlock < Block
10 10
11 def content(args={}) 11 def content(args={})
12 block = self 12 block = self
13 - lambda do 13 + lambda do |_|
14 render :file => 'blocks/profile_info', :locals => { :block => block } 14 render :file => 'blocks/profile_info', :locals => { :block => block }
15 end 15 end
16 end 16 end