Sha256: 26d532809e474d3ad52476cd53aa7c623c58f133f3396b184471fd3bdcb8a93c
Contents?: true
Size: 811 Bytes
Versions: 24
Compression:
Stored size: 811 Bytes
Contents
# Controller generated by Typus, use it to extend admin functionality. class Admin::<%= model.pluralize %>Controller < Admin::MasterController =begin ## # You can overwrite and extend Admin::MasterController with your methods. # # Actions have to be defined in <tt>config/typus/application.yml</tt>: # # <%= model %>: # actions: # index: custom_action # edit: custom_action_for_an_item # # And you have to add permissions on <tt>config/typus/application_roles.yml</tt> # to have access to them. # # admin: # <%= model %>: create, read, update, destroy, custom_action # # editor: # <%= model %>: create, read, update, custom_action_for_an_item # def index end def custom_action end def custom_action_for_an_item end =end end
Version data entries
24 entries across 24 versions & 2 rubygems