Class: Backbone::Generators::ModelGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Backbone::Generators::ModelGenerator
- Includes:
- ResourceHelpers
- Defined in:
- lib/generators/backbone/model/model_generator.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods included from ResourceHelpers
#application_name, #backbone_path, #collection_namespace, #js_app_name, #jst, #model_namespace, #plural_model_name, #router_namespace, #singular_model_name, #uncapitalize, #view_namespace
Instance Method Details
#create_backbone_model ⇒ Object
13 14 15 |
# File 'lib/generators/backbone/model/model_generator.rb', line 13 def create_backbone_model template "model.coffee", "#{backbone_path}/models/#{file_name}.js.coffee" end |