Sha256: 56093a20bfc64a0026d9384daf2cac07c7060ab8200cf51f021d2f9871355d62
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 KB
Contents
require 'thredded/engine' require 'cancan' require 'carrierwave' require 'griddler' require 'kaminari' require 'friendly_id' require 'nested_form' require 'thredded/email_processor' require 'thredded/errors' require 'thredded/at_notifier' require 'html/pipeline' require 'html/pipeline/bbcode_filter' require 'html/pipeline/attached_image_filter' require 'html/pipeline/at_mention_filter' require 'thredded/messageboard_user_permissions' require 'thredded/post_user_permissions' require 'thredded/private_topic_user_permissions' require 'thredded/topic_user_permissions' require 'thredded/search_sql_builder' module Thredded mattr_accessor :user_class, :email_incoming_host, :email_from, :email_outgoing_prefix, :user_path, :file_storage, :asset_root, :layout, :avatar_default self.file_storage = :file # or :fog self.asset_root = '' # or fully qualified URI to assets self.layout = 'thredded' self.avatar_default = 'mm' def self.user_class if @@user_class.is_a?(Class) raise 'Please use a string instead of a class' end if @@user_class.is_a?(String) begin Object.const_get(@@user_class) rescue NameError @@user_class.constantize end end end def self.user_path(user) if @@user_path.respond_to? :call @@user_path.call(user) else '/' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thredded-0.0.12 | lib/thredded.rb |