Sha256: ff9539f2904fb0f435643983d83fd7a46c53f8f43679fd2b2ce221b8d168e0bc
Contents?: true
Size: 828 Bytes
Versions: 6
Compression:
Stored size: 828 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 end
Version data entries
6 entries across 5 versions & 1 rubygems