Sha256: 77f83fa9cfbc8984ac9881747bc2b2515c7b2d026a000051781b926def221556

Contents?: true

Size: 603 Bytes

Versions: 96

Compression:

Stored size: 603 Bytes

Contents

class <%= controller_class_name %>Controller < ApplicationController
  before_filter :require_user
  
<%= template_for_inclusion %>

  protected

  # ===================
  # = Authorize BEGIN =
  # ===================
  
  def create_authorized?
    permit?([:root, :super])
  end
  
  def delete_authorized?
    permit?([:root, :super])
  end
  
  def list_authorized?
    permit?([:root, :super])
  end
  
  def show_authorized?
    permit?([:root, :super])
  end
  
  def update_authorized?
    permit?([:root, :super])
  end
  
  # =================
  # = Authorize END =
  # =================

end

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
six-updater-web-0.17.2 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.17.1 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.17.0 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.16.3 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.16.2 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.16.0 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.15.4 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.15.3 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.15.2 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.15.1 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.14.12 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.14.10 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.14.9 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.14.8 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.14.7 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.14.6 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.14.5 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.14.4 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.14.3 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb
six-updater-web-0.14.2 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/generators/active_scaffold/templates/controller_methods.rb