Module: RailsAssist::Orm::ActiveRecord
- Includes:
- Base
- Defined in:
- lib/rails_artifactor/artifact/orm/active_record.rb
Instance Method Summary collapse
- #new_model_content(name, options = {}, &block) ⇒ Object
- #orm_marker_name(name, options = nil) ⇒ Object
Methods included from Base
Instance Method Details
#new_model_content(name, options = {}, &block) ⇒ Object
9 10 11 12 |
# File 'lib/rails_artifactor/artifact/orm/active_record.rb', line 9 def new_model_content name, ={}, &block content = block ? yield : [:content] file_w_inherit(name, orm_marker_name(name, )) { content } end |
#orm_marker_name(name, options = nil) ⇒ Object
5 6 7 |
# File 'lib/rails_artifactor/artifact/orm/active_record.rb', line 5 def orm_marker_name name, =nil 'ActiveRecord::Base' end |