Module: Cms::Concerns::HasContentType
- Defined in:
- lib/cms/concerns/has_content_type.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Instance Method Summary collapse
-
#has_content_type(options = {}) ⇒ Object
Adds ContentType information to the object.
Instance Method Details
#has_content_type(options = {}) ⇒ Object
Adds ContentType information to the object.
8 9 10 11 12 13 14 15 16 |
# File 'lib/cms/concerns/has_content_type.rb', line 8 def has_content_type(={}) include InstanceMethods extend ClassMethods if [:module] content_module [:module] end end |