Sha256: d90c9a32f2316ea1319586103bcbb55799979040b6cd96aa35a27bfb82cbf8e2
Contents?: true
Size: 958 Bytes
Versions: 4
Compression:
Stored size: 958 Bytes
Contents
# Use this hook to configure Chive. # Be sure to restart your server when you modify this file. # Chive.setup do |config| # The model for the user. # config.user_model = 'User' # The user model's primary key. # config.user_pk_attr = 'id' # The user name attribute in the user model. # config.user_name_attr = 'name' # If the main app uses Devise, set this attribute to `true` for quick and # easy user authentication. The `Chive.user_model` attribute should use the # same model as Devise. # config.use_devise = false <% if options[:devise] %>config.use_devise = true <% end %> # The layout to use for public pages # config.public_layout = 'chive/application' # The slug formatter. This proc should generate a unique param for the # article's URL, e.g., `my-article-title` # config.slug_formatter = proc { |article| article.title.parameterize } # The number of articles to display per page # config.per_page = 10 end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
chive-0.2.3 | templates/chive.rb.tt |
chive-0.2.2 | templates/chive.rb.tt |
chive-0.2.1 | templates/chive.rb.tt |
chive-0.2.0 | templates/chive.rb.tt |