lib/protector/adapters/sequel/dataset.rb in protector-0.5.1 vs lib/protector/adapters/sequel/dataset.rb in protector-0.5.2
- old
+ new
@@ -29,14 +29,14 @@
alias_method_chain :each, :protector
end
# Gets {Protector::DSL::Meta::Box} of this dataset
- def protector_meta
+ def protector_meta(subject=protector_subject)
model.protector_meta.evaluate(
Protector::Adapters::Sequel,
model,
- protector_subject
+ subject
)
end
# Substitutes `row_proc` with {Protector} and injects protection scope
def each_with_protector(*args, &block)
\ No newline at end of file