Class: SnFoil::AllGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/snfoil/all/all_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_contextObject



38
39
40
# File 'lib/generators/snfoil/all/all_generator.rb', line 38

def add_context
  rails_command "generate snfoil:context #{call_args.join(' ')}", call_options
end

#add_controllerObject



50
51
52
# File 'lib/generators/snfoil/all/all_generator.rb', line 50

def add_controller
  rails_command "generate snfoil:controller #{call_args.join(' ')}", call_options
end

#add_jsonapi_deserializerObject



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(' ')}", call_options
end

#add_jsonapi_serializerObject



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(' ')}", call_options
end

#add_modelObject



26
27
28
# File 'lib/generators/snfoil/all/all_generator.rb', line 26

def add_model
  rails_command "generate model #{call_args.join(' ')}", call_options
end

#add_policyObject



30
31
32
# File 'lib/generators/snfoil/all/all_generator.rb', line 30

def add_policy
  rails_command "generate snfoil:policy #{call_args.join(' ')}", call_options
end

#add_searcherObject



34
35
36
# File 'lib/generators/snfoil/all/all_generator.rb', line 34

def add_searcher
  rails_command "generate snfoil:searcher #{call_args.join(' ')}", call_options
end