Skip to content

Commit

Permalink
Add |c| block to proc
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Jun 30, 2010
1 parent a2930f3 commit 3a36fe7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def value=(new_value)
end

def callback_proc
eval "Proc.new{ #{self.callback_proc_as_string} }" if RefinerySetting.column_names.include?('callback_proc_as_string') && self.callback_proc_as_string.present?
eval "Proc.new{|c| #{self.callback_proc_as_string} }" if RefinerySetting.column_names.include?('callback_proc_as_string') && self.callback_proc_as_string.present?
end

end

0 comments on commit 3a36fe7

Please sign in to comment.