Module: ActiveRecord::Wrappings::ClassMethods
- Defined in:
- lib/active_record/wrappings.rb,
lib/active_record/wrappers/yaml_wrapper.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#wrap_in_yaml(*attributes) ⇒ Object
Wraps the attribute in Yaml encoding.
-
#wrap_with(wrapper, *attributes) ⇒ Object
:nodoc:.
Instance Method Details
#wrap_in_yaml(*attributes) ⇒ Object
Wraps the attribute in Yaml encoding
12 |
# File 'lib/active_record/wrappers/yaml_wrapper.rb', line 12 def wrap_in_yaml(*attributes) wrap_with(YamlWrapper, attributes) end |
#wrap_with(wrapper, *attributes) ⇒ Object
:nodoc:
7 8 9 |
# File 'lib/active_record/wrappings.rb', line 7 def wrap_with(wrapper, *attributes) [ attributes ].flat.each { |attribute| wrapper.wrap(attribute) } end |