Sha256: f03b1a878c50fa72ec2b5ced56505995e4f1459df97ed8a9a7787e2468cc0d5d
Contents?: true
Size: 1.49 KB
Versions: 4
Compression:
Stored size: 1.49 KB
Contents
Cardboard.setup do |config| # == Site Title # # Set the title that is displayed on the main layout # for each of the Cardboard pages. # config.site_title = 'Dummy' # == Admin User Class # # Cardboard will associate actions with the current # user performing them. config.user_class = 'AdminUser' # == Current User # # Cardboard will associate actions with the current # user performing them. # # This setting changes the method which Cardboard calls # to return the currently logged in user. config.current_admin_user_method = :current_admin_user # == User Authentication # # Cardboard will automatically call an authentication # method in a before filter of all controller actions to # ensure that there is a currently logged in admin user. # # This setting changes the method which Cardboard calls # within the controller. config.authentication_method = :authenticate_admin_user! # == Logging Out # # Cardboard displays a logout link on each screen. These # settings configure the location and method used for the link. # # This setting changes the path where the link points to. If it's # a string, the strings is used as the path. If it's a Symbol, we # will call the method to return the path. # # Default: config.logout_link_path = :destroy_admin_user_session_path # This setting changes the http method used when rendering the # link. For example :get, :delete, :put, etc.. # # Default: # config.logout_link_method = :get end
Version data entries
4 entries across 4 versions & 1 rubygems