method
permitted_params
v6.1.3.1 -
Show latest stable
- Class:
Rails::Generators::ScaffoldControllerGenerator
permitted_params()private
No documentation available.
# File railties/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb, line 43
def permitted_params
attachments, others = attributes_names.partition { |name| attachments?(name) }
params = others.map { |name| ":#{name}" }
params += attachments.map { |name| "#{name}: []" }
params.join(", ")
end