Sha256: 6099b86084dcb5a850f78b72db6740f265cf49a90dff0b9863b64f9b5c05e037
Contents?: true
Size: 974 Bytes
Versions: 1
Compression:
Stored size: 974 Bytes
Contents
Proclaim.setup do |config| # The class to which posts belong. Changing this also changes the # `current_author_method` and `authentication_method`. For example, setting # `author_class = "Admin"` changes the default `current_author_method` to be # `:current_admin`, etc. #author_class = "User" # Method to obtain the name of the author. This should be a method on the # author class. #author_name_method = :name # Method to obtain the currently-authenticated user. Should return nil if # no user is currently authenticated. #current_author_method = :current_user # Method to verify that a user is authenticated, and if not, will redirect # to some sort of authentication page. #authentication_method = :authenticate_user! # Maximum length for the excerpts shown on the posts index. #excerpt_length = 500 # Buttons to display on post editor toolbar #editor_toolbar_buttons = ['bold', 'italic', 'underline', 'anchor', 'header1', 'header2', 'quote'] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
proclaim-0.2.1 | lib/generators/proclaim/templates/initialize_proclaim.rb |