Sha256: 250990160f148df599a069a43eb498ec78def1c1f7ac49c677cd1cd8db65c503

Contents?: true

Size: 320 Bytes

Versions: 11

Compression:

Stored size: 320 Bytes

Contents

class <%= controller_class_name %>Controller < InheritedResources::Base
<% if options[:singleton] -%>
  defaults :singleton => true
<% end -%>

  private

    def <%= singular_name %>_params
      params.require(:<%= singular_name %>).permit(<%= attributes_names.map{ |a_name| ":#{a_name}" }.join(", ") %>)
    end

end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
inherited_resources-2.0.1 lib/generators/rails/templates/controller.rb.tt
inherited_resources-2.0.0 lib/generators/rails/templates/controller.rb.tt
inherited_resources-1.14.0 lib/generators/rails/templates/controller.rb.tt
inherited_resources-1.13.1 lib/generators/rails/templates/controller.rb.tt
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/inherited_resources-1.13.0/lib/generators/rails/templates/controller.rb.tt
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/inherited_resources-1.13.0/lib/generators/rails/templates/controller.rb.tt
inherited_resources-1.13.0 lib/generators/rails/templates/controller.rb.tt
inherited_resources-1.12.0 lib/generators/rails/templates/controller.rb.tt
inherited_resources-1.11.0 lib/generators/rails/templates/controller.rb.tt
inherited_resources-1.10.0 lib/generators/rails/templates/controller.rb.tt
inherited_resources-1.10.0.rc1 lib/generators/rails/templates/controller.rb.tt