diff options
Diffstat (limited to 'activerecord/lib/active_record/wrappers/yaml_wrapper.rb')
-rw-r--r-- | activerecord/lib/active_record/wrappers/yaml_wrapper.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/activerecord/lib/active_record/wrappers/yaml_wrapper.rb b/activerecord/lib/active_record/wrappers/yaml_wrapper.rb deleted file mode 100644 index 74f40a507c..0000000000 --- a/activerecord/lib/active_record/wrappers/yaml_wrapper.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'yaml' - -module ActiveRecord - module Wrappings #:nodoc: - class YamlWrapper < AbstractWrapper #:nodoc: - def wrap(attribute) attribute.to_yaml end - def unwrap(attribute) YAML::load(attribute) end - end - - module ClassMethods #:nodoc: - # Wraps the attribute in Yaml encoding - def wrap_in_yaml(*attributes) wrap_with(YamlWrapper, attributes) end - end - end -end
\ No newline at end of file |