Class: SnFoil::AllGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SnFoil::AllGenerator
- Defined in:
- lib/generators/snfoil/all/all_generator.rb
Instance Method Summary collapse
- #add_context ⇒ Object
- #add_controller ⇒ Object
- #add_jsonapi_deserializer ⇒ Object
- #add_jsonapi_serializer ⇒ Object
- #add_model ⇒ Object
- #add_policy ⇒ Object
- #add_searcher ⇒ Object
Instance Method Details
#add_context ⇒ Object
38 39 40 |
# File 'lib/generators/snfoil/all/all_generator.rb', line 38 def add_context rails_command "generate snfoil:context #{call_args.join(' ')}", end |
#add_controller ⇒ Object
50 51 52 |
# File 'lib/generators/snfoil/all/all_generator.rb', line 50 def add_controller rails_command "generate snfoil:controller #{call_args.join(' ')}", end |
#add_jsonapi_deserializer ⇒ Object
46 47 48 |
# File 'lib/generators/snfoil/all/all_generator.rb', line 46 def add_jsonapi_deserializer rails_command "generate snfoil:jsonapi_deserializer #{call_args.join(' ')}", end |
#add_jsonapi_serializer ⇒ Object
42 43 44 |
# File 'lib/generators/snfoil/all/all_generator.rb', line 42 def add_jsonapi_serializer rails_command "generate snfoil:jsonapi_serializer #{call_args.join(' ')}", end |
#add_model ⇒ Object
26 27 28 |
# File 'lib/generators/snfoil/all/all_generator.rb', line 26 def add_model rails_command "generate model #{call_args.join(' ')}", end |
#add_policy ⇒ Object
30 31 32 |
# File 'lib/generators/snfoil/all/all_generator.rb', line 30 def add_policy rails_command "generate snfoil:policy #{call_args.join(' ')}", end |
#add_searcher ⇒ Object
34 35 36 |
# File 'lib/generators/snfoil/all/all_generator.rb', line 34 def add_searcher rails_command "generate snfoil:searcher #{call_args.join(' ')}", end |