Sha256: 74ca9e31674f147a86a2e26c9a8330876179d826c447186ed351256e12b21177

Contents?: true

Size: 1.52 KB

Versions: 6

Compression:

Stored size: 1.52 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 = '<%= @site_title %>'

  # == Admin User Class
  #
  # Cardboard will associate actions with the current
  # user performing them.
  config.user_class = '<%= @user_class %>'

  # == 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_user_helper %>

  # == 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 = :<%= @authentication_method %>

  # == 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 = :<%= @logout_link_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

6 entries across 6 versions & 1 rubygems

Version Path
cardboard_cms-0.3.1 lib/generators/cardboard/install/templates/cardboard.rb.erb
cardboard_cms-0.2.2 lib/generators/cardboard/install/templates/cardboard.rb.erb
cardboard_cms-0.2.1 lib/generators/cardboard/install/templates/cardboard.rb.erb
cardboard_cms-0.1.8 lib/generators/cardboard/install/templates/cardboard.rb.erb
cardboard_cms-0.1.6 lib/generators/cardboard/install/templates/cardboard.rb.erb
cardboard_cms-0.1.4 lib/generators/cardboard/install/templates/cardboard.rb.erb