lib/consent/dsl.rb in consent-1.0.0 vs lib/consent/dsl.rb in consent-1.0.1

- old
+ new

@@ -25,10 +25,11 @@ collection ||= block @subject.views[key] = View.new(key, label, instance, collection) end def action(key, label, options = {}) - @subject.actions << Action.new(key, label, @defaults.merge(options)) + @subject.actions << Action.new(@subject, key, label, + @defaults.merge(options)) end def self.build(subject, defaults = {}, &block) DSL.new(subject, defaults).instance_eval(&block) end