lib/risosu_san.rb in matsimitsu-risosu-san-0.1.0 vs lib/risosu_san.rb in matsimitsu-risosu-san-0.1.1
- old
+ new
@@ -12,11 +12,11 @@
def find_parent_resource(options = {})
if options[:field] then
field = options[:field]
options.delete(:field)
end
- before_filter options do
- find_parent_resource(field)
+ before_filter options do |c|
+ c.send(:find_parent_resource, field)
end
end
end
protected
\ No newline at end of file