Module: Globalize::ActiveRecord::InstanceMethods
- Defined in:
- lib/protector/globalize.rb
Instance Method Summary collapse
Instance Method Details
#read_attribute_with_protector(name, options = {}) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/protector/globalize.rb', line 18 def read_attribute_with_protector(name, = {}) return nil if protector_subject? && !can?(:read, name) Protector.insecurely do read_attribute_without_protector(name, ) end end |