Sha256: 74c7b5f740cd9165fd1b1f1bbb5934f1c79e761ab2d2716a1ad2df08c7714804
Contents?: true
Size: 1.29 KB
Versions: 3
Compression:
Stored size: 1.29 KB
Contents
require 'devise' require 'judge' require_relative 'validation_helper_collection' module Fae # configurable defaults class << self mattr_accessor :devise_secret_key, :devise_mailer_sender, :dashboard_exclusions, :max_image_upload_size, :max_file_upload_size, :languages, :recreate_versions, :validation_helpers, :track_changes, :tracker_history_length, :slug_separator, :has_top_nav, :disabled_environments, :per_page, :use_cache self.devise_secret_key = '' self.devise_mailer_sender = 'change-me@example.com' self.dashboard_exclusions = [] self.max_image_upload_size = 2 self.max_file_upload_size = 5 self.languages = {} self.recreate_versions = false self.validation_helpers = ValidationHelperCollection.new self.track_changes = true self.tracker_history_length = 15 self.slug_separator = '-' self.disabled_environments = [] self.per_page = 25 self.use_cache = false end # this function maps the vars from your app into your engine def self.setup(&block) yield self # assign initializer configs Devise.secret_key = Fae.devise_secret_key Devise.mailer_sender = Fae.devise_mailer_sender Kaminari.config.default_per_page = Fae.per_page end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fae-rails-1.7.1 | lib/fae/options.rb |
fae-rails-1.7.0 | lib/fae/options.rb |
fae-rails-1.6.0 | lib/fae/options.rb |