Class: Opalla::CollectionGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Opalla::CollectionGenerator
- Defined in:
- lib/rails/generators/opalla/collection_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_collection ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/rails/generators/opalla/collection_generator.rb', line 5 def create_collection create_file js("collections/#{file_name}.rb"), <<~CONTROLLER class #{class_name} < Opalla::Collection # attr_reader :attrs end CONTROLLER end |