Sha256: f8c8f823919a1b486162fa4af9237536c27370e6f8ade8c0b5092a3b317f2b1a
Contents?: true
Size: 488 Bytes
Versions: 2
Compression:
Stored size: 488 Bytes
Contents
module ::Phoenix module Admin class <%= class_name.pluralize %>Controller < ::Phoenix::AdminController crudify :'phoenix/<%= 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_path <% end %>, :xhr_paging => true end end end
Version data entries
2 entries across 2 versions & 1 rubygems