Class: RailsTemplater::Orm
- Inherits:
-
Object
- Object
- RailsTemplater::Orm
- Defined in:
- lib/rails_templater/orm.rb
Constant Summary collapse
- DEFAULT =
:mongoid
- SUPPORTED_TYPES =
[:active_record, :mongoid]
Instance Method Summary collapse
Instance Method Details
#type ⇒ Object
7 8 9 |
# File 'lib/rails_templater/orm.rb', line 7 def type @type || DEFAULT end |
#type=(value) ⇒ Object
11 12 13 14 |
# File 'lib/rails_templater/orm.rb', line 11 def type=(value) raise NotSupportedError unless SUPPORTED_TYPES.include?(value) @type = value end |