Sha256: 2bcf8e6f3f33d358014d9aab0cfa8801aef03261daa8b5767638344be5fea561

Contents?: true

Size: 1.09 KB

Versions: 4

Compression:

Stored size: 1.09 KB

Contents

Qwerty.configure do | config |
  # config.options[:admin_title] = 'Qwerty'

  # Qwerty does not include autherisation/authentication, it hooks in to your
  # applications own choices. This way you can use authlogic, devise, cancan or 
  # any other system.
  #
  # Create a module with a autherize method, the autherize method is called from
  # a before_filter in every one of Qwerty's admin controllers.
  #
  # Example: 
  # module Qwerty
  #   module DeviseAuth
  #     def autherize
  #       # Delegate to Devise
  #       authenticate_user! 
  #       raise 'You must be an admin' unless current_user.admin?
  #     end
  #   end
  # end
  #
  # config.options[:admin_autherization] = Qwerty::DeviseAuth
  #
  # Qwerty comes bundled with two Auth stratagies AllowAuth and DenyAuth.
  # As the names suggest AllowAuth allows everything and DenyAuth allows
  # nothing.
  #
  # You can also autherize a user for regular CMS pages, for example if some
  # pages need to be private. By default anyone is allowed to view all
  # non-admin pages.
  #
  # config.options[:autherization] = Qwerty::AllowAuth
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
qwerty-0.0.7.pre lib/generators/qwerty/install/templates/qwerty.rb
qwerty-0.0.5.pre lib/generators/qwerty/install/templates/qwerty.rb
qwerty-0.0.4.pre lib/generators/qwerty/install/templates/qwerty.rb
qwerty-0.0.3.pre lib/generators/qwerty/install/templates/qwerty.rb