Class: Rails::Generators::ScaffoldControllerGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/rails/scaffold_controller_generator.rb

Instance Method Summary collapse

Instance Method Details

#permitted_paramsObject



13
14
15
# File 'lib/generators/rails/scaffold_controller_generator.rb', line 13

def permitted_params
  attributes_names.map { |name| ":#{name}" }.join(', ')
end