Module: ActiveSupport::CoreExtensions::Hash::Conversions::FileLike
- Defined in:
- lib/active_support/core_ext/hash/conversions.rb
Overview
This module exists to decorate files deserialized using Hash.from_xml with the original_filename
and content_type
methods.
Instance Attribute Summary collapse
Instance Attribute Details
#content_type ⇒ Object
16 17 18 |
# File 'lib/active_support/core_ext/hash/conversions.rb', line 16 def content_type @content_type || 'application/octet-stream' end |
#original_filename ⇒ Object
12 13 14 |
# File 'lib/active_support/core_ext/hash/conversions.rb', line 12 def original_filename @original_filename || 'untitled' end |