Sha256: 6ac89acb7fd84589d4d77a3f3cd53959762a82fcc32cc6402ff1bcbe7d3c1e28

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

class Admin::<%= class_name.pluralize %>Controller < Admin::BaseController

  crudify :<%= 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 => :admin_<%= singular_name %>_index_url                    
<% end %>

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-generators-0.9.9 lib/generators/refinery_engine/templates/app/controllers/admin/plural_name_controller.rb