Module: Refinery::Core
- Includes:
- ActiveSupport::Configurable
- Defined in:
- lib/refinery/core.rb,
lib/refinery/core/engine.rb,
lib/refinery/core/nil_user.rb,
lib/refinery/users_manager.rb,
lib/refinery/core/configuration.rb,
lib/refinery/core/default_route.rb,
app/models/refinery/core/base_model.rb,
lib/refinery/core/authorisation_adapter.rb,
lib/refinery/core/authorisation_manager.rb
Defined Under Namespace
Classes: AuthorisationAdapter, AuthorisationManager, BaseModel, DefaultRoute, Engine, NilUser, Stylesheet, UsersManager
Class Method Summary
collapse
Class Method Details
.backend_path ⇒ Object
49
50
51
|
# File 'lib/refinery/core/configuration.rb', line 49
def backend_path
[mounted_path.gsub(%r{/\z}, ''), backend_route].join("/")
end
|
.backend_route ⇒ Object
43
44
45
46
|
# File 'lib/refinery/core/configuration.rb', line 43
def backend_route
config.backend_route.to_s.gsub(%r{\A/}, '')
end
|
.clear_javascripts! ⇒ Object
53
54
55
|
# File 'lib/refinery/core/configuration.rb', line 53
def clear_javascripts!
self.javascripts = []
end
|
.clear_stylesheets! ⇒ Object
57
58
59
|
# File 'lib/refinery/core/configuration.rb', line 57
def clear_stylesheets!
self.stylesheets = []
end
|
.dragonfly_custom_backend_class ⇒ Object
61
62
63
|
# 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 ⇒ Object
14
15
16
|
# File 'lib/refinery/core.rb', line 14
def root
@root ||= Pathname.new(File.expand_path('../../../', __FILE__))
end
|
.site_name ⇒ Object
65
66
67
|
# File 'lib/refinery/core/configuration.rb', line 65
def site_name
::I18n.t('site_name', :scope => 'refinery.core.config', :default => config.site_name)
end
|
69
70
71
|
# File 'lib/refinery/core/configuration.rb', line 69
def wymeditor_whitelist_tags=(tags)
raise "Please ensure refinerycms-wymeditor is being used and use Refinery::Wymeditor.whitelist_tags instead of Refinery::Core.wymeditor_whitelist_tags"
end
|