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

Version Path
fesplugas-typus-0.9.17 lib/typus/templates/resources_controller.rb.erb
typus-0.9.39 generators/typus/templates/auto/resources_controller.rb.erb
typus-0.9.38 generators/typus/templates/auto/resources_controller.rb.erb
typus-0.9.37 generators/typus/templates/auto/resources_controller.rb.erb
typus-0.9.36 generators/typus/templates/auto/resources_controller.rb.erb
typus-0.9.35 generators/typus/templates/auto/resources_controller.rb.erb
typus-0.9.34 generators/typus/templates/auto/resources_controller.rb.erb
typus-0.9.33 generators/typus/templates/auto/resources_controller.rb.erb
typus-0.9.32 lib/typus/templates/resources_controller.rb.erb
typus-0.9.31 lib/typus/templates/resources_controller.rb.erb
typus-0.9.30 lib/typus/templates/resources_controller.rb.erb
typus-0.9.29 lib/typus/templates/resources_controller.rb.erb
typus-0.9.28 lib/typus/templates/resources_controller.rb.erb
typus-0.9.27 lib/typus/templates/resources_controller.rb.erb
typus-0.9.26 lib/typus/templates/resources_controller.rb.erb
typus-0.9.25 lib/typus/templates/resources_controller.rb.erb
typus-0.9.24 lib/typus/templates/resources_controller.rb.erb
typus-0.9.23 lib/typus/templates/resources_controller.rb.erb
typus-0.9.22 lib/typus/templates/resources_controller.rb.erb
typus-0.9.21 lib/typus/templates/resources_controller.rb.erb