module Answers::Core
Public Class Methods
backend_route()
click to toggle source
# File lib/answers/core/configuration.rb, line 50 def backend_route # prevent / at the start. config.backend_route.to_s.gsub(%r{\A/}, '') end
clear_javascripts!()
click to toggle source
# File lib/answers/core/configuration.rb, line 55 def clear_javascripts! self.javascripts = [] end
clear_stylesheets!()
click to toggle source
# File lib/answers/core/configuration.rb, line 59 def clear_stylesheets! self.stylesheets = [] end
dragonfly_custom_backend?()
click to toggle source
# File lib/answers/core/configuration.rb, line 63 def dragonfly_custom_backend? config.dragonfly_custom_backend_class.present? end
dragonfly_custom_backend_class()
click to toggle source
# File lib/answers/core/configuration.rb, line 67 def dragonfly_custom_backend_class config.dragonfly_custom_backend_class.constantize if dragonfly_custom_backend? end
root()
click to toggle source
# File lib/answers/core.rb, line 12 def root @root ||= Pathname.new(File.expand_path('../../../', __FILE__)) end
site_name()
click to toggle source
# File lib/answers/core/configuration.rb, line 71 def site_name ::I18n.t('site_name', :scope => 'answers.core.config', :default => config.site_name) end