Module: Cloaked::ClassMethods
- Defined in:
- lib/cloaked.rb
Instance Method Summary collapse
Instance Method Details
#with_cloaked_keys(*fields, size: DEFAULT_SIZE, prefix: '', method: :url_safe) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/cloaked.rb', line 26 def with_cloaked_keys(*fields, size: DEFAULT_SIZE, prefix: '', method: :url_safe) self.cloaked_fields ||= [] fields.each do |field| self.cloaked_fields << { field_name: field, size: size, prefix: prefix, method: method } end end |