Sha256: dce9bb25be6ee287c06b2c4553029b6803e7de930f70fdebac343f2e61a9eb3a
Contents?: true
Size: 625 Bytes
Versions: 6
Compression:
Stored size: 625 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|text/ }).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
6 entries across 6 versions & 1 rubygems