lib/puffer/controller/dsl.rb in puffer-0.0.19 vs lib/puffer/controller/dsl.rb in puffer-0.0.20
- old
+ new
@@ -51,11 +51,11 @@
self.class.send "#{action}_fields"
end
end
end
- def field name, options = {}
- field = @_fields.field(name, model, options) if @_fields
+ def field name, options = {}, &block
+ field = @_fields.field(name, model, options, &block) if @_fields
generate_association_actions field if field.reflection
#generate_change_actions field if field.toggable?
end
end