Class: ApiV2Generator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- ApiV2Generator
- Defined in:
- lib/generators/api_v2/api_v2_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_routes ⇒ Object
9 10 11 |
# File 'lib/generators/api_v2/api_v2_generator.rb', line 9 def add_routes json_route "jsonapi_resources :#{underscores}" end |
#create_directories ⇒ Object
5 6 7 |
# File 'lib/generators/api_v2/api_v2_generator.rb', line 5 def create_directories directory '.', './' end |