Sha256: 0776a79f28db622dc69f3d77257fc8a003da68c120408a6853f8168a1a3fbf40
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
module TheComments def self.configure(&block) yield @config ||= TheComments::Configuration.new end def self.config @config end # Configuration class class Configuration include ActiveSupport::Configurable config_accessor :max_reply_depth, :tolerance_time, :default_state, :default_owner_state, :empty_inputs, :default_title, :template_engine, :empty_trap_protection, :tolerance_time_protection, :delete_descendants_on_node_delete end configure do |config| config.max_reply_depth = 3 config.tolerance_time = 5 config.default_state = :draft config.default_owner_state = :published config.empty_inputs = [:message] config.default_title = 'Undefined title' config.template_engine = :haml config.empty_trap_protection = true config.tolerance_time_protection = true config.delete_descendants_on_node_delete = true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
the_comments-2.2.2 | lib/the_comments/config.rb |