module Refinery::Core
Public Class Methods
backend_path()
click to toggle source
See github.com/refinery/refinerycms/issues/2740
# File lib/refinery/core/configuration.rb, line 49 def backend_path [mounted_path.gsub(%r{/\z}, ''), backend_route].join("/") end
backend_route()
click to toggle source
# File lib/refinery/core/configuration.rb, line 43 def backend_route # prevent / at the start. config.backend_route.to_s.gsub(%r{\A/}, '') end
clear_javascripts!()
click to toggle source
# File lib/refinery/core/configuration.rb, line 53 def clear_javascripts! self.javascripts = [] end
clear_stylesheets!()
click to toggle source
# File lib/refinery/core/configuration.rb, line 57 def clear_stylesheets! self.stylesheets = [] end
dragonfly_custom_backend_class()
click to toggle source
# File lib/refinery/core/configuration.rb, line 61 def dragonfly_custom_backend_class raise "Refinery::Dragonfly now handles all dragonfly configuration. Consult 'config/initializers/refinery/dragonfly.rb'." end
root()
click to toggle source
# File lib/refinery/core.rb, line 14 def root @root ||= Pathname.new(File.expand_path('../../../', __FILE__)) end
site_name()
click to toggle source
# File lib/refinery/core/configuration.rb, line 65 def site_name ::I18n.t('site_name', :scope => 'refinery.core.config', :default => config.site_name) end