Sha256: e535ea76828d1545f695abfa230af24f524be0d9bc22276c083f19eab64ede80

Contents?: true

Size: 608 Bytes

Versions: 11

Compression:

Stored size: 608 Bytes

Contents

module Refinery
  module <%= namespacing %>
    module Admin
      class <%= class_name.pluralize %>Controller < ::Refinery::AdminController

        crudify :'refinery/<%= namespacing.underscore %>/<%= singular_name %>'<% if (title = attributes.detect { |a| a.type.to_s == "string" }).present? and title.name != 'title' %>,
                :title_attribute => '<%= title.name %>'<% end %><% if plural_name == singular_name %>,
                  :redirect_to_url => :refinery_<%= namespacing.underscore %>_admin_<%= singular_name %>_index_path
    <% end %>, :xhr_paging => true

      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refinerycms-core-2.0.10 lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb.erb
refinerycms-core-2.0.9 lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb.erb
refinerycms-core-2.0.8 lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb.erb
refinerycms-core-2.0.7 lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb.erb
refinerycms-core-2.0.6 lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb.erb
refinerycms-core-2.0.5 lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb
refinerycms-core-2.0.4 lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb
refinerycms-core-2.0.3 lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb
refinerycms-core-2.0.2 lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb
refinerycms-core-2.0.1 lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb
refinerycms-core-2.0.0 lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb