Sha256: e11afee8dc25f658056e9339fa9a85f31f127e9718e3ebc33653d239ae2d6ee0
Contents?: true
Size: 588 Bytes
Versions: 5
Compression:
Stored size: 588 Bytes
Contents
module Admin class <%= 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 %> def index search_all_<%= plural_name %> if searching? paginate_all_<%= plural_name %> render :partial => '<%= plural_name %>' if request.xhr? end end end
Version data entries
5 entries across 5 versions & 1 rubygems