class Rails::Generators::RespondersControllerGenerator

Protected Instance Methods

attributes_params() click to toggle source
# File lib/generators/rails/responders_controller_generator.rb, line 20
def attributes_params
  "#{singular_table_name}_params"
end
flash?() click to toggle source
# File lib/generators/rails/responders_controller_generator.rb, line 12
def flash?
  if defined?(ApplicationController)
    !ApplicationController.responder.ancestors.include?(Responders::FlashResponder)
  else
    Rails.application.config.responders.flash_keys.blank?
  end
end