Sha256: 8b03dd01232f257db4072a7cbbe3e78c306a0701515634b549ff0bccc87f29d7
Contents?: true
Size: 1016 Bytes
Versions: 1
Compression:
Stored size: 1016 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. #config.author_class = "User" # Method to obtain the name of the author. This should be a method on the # author class. #config.author_name_method = :name # Method to obtain the currently-authenticated user. Should return nil if # no user is currently authenticated. #config.current_author_method = :current_user # Method to verify that a user is authenticated, and if not, will redirect # to some sort of authentication page. #config.authentication_method = :authenticate_user! # Maximum length for the excerpts shown on the posts index. #config.excerpt_length = 500 # Buttons to display on post editor toolbar #config.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.2 | lib/generators/proclaim/templates/initialize_proclaim.rb |