Module: Refinery::Core
- Includes:
- ActiveSupport::Configurable
- Defined in:
- core/lib/refinery/core.rb,
core/lib/refinery/core/engine.rb,
core/lib/refinery/core/nil_user.rb,
core/spec/system/refinery/core_spec.rb,
core/lib/refinery/core/configuration.rb,
core/lib/refinery/core/default_route.rb,
core/lib/refinery/core/users_manager.rb,
core/app/models/refinery/core/base_model.rb,
core/spec/lib/refinery/core/nil_user_spec.rb,
core/lib/refinery/core/authorisation_adapter.rb,
core/lib/refinery/core/authorisation_manager.rb,
core/spec/lib/refinery/core/configuration_spec.rb,
core/spec/lib/refinery/core/users_manager_spec.rb,
core/spec/lib/refinery/authorisation_manager_spec.rb
Defined Under Namespace
Classes: AuthorisationAdapter, AuthorisationManager, BaseModel, DefaultRoute, Engine, NilUser, Stylesheet, UsersManager
Class Method Summary
collapse
Class Method Details
.backend_path ⇒ Object
52
53
54
|
# File 'core/lib/refinery/core/configuration.rb', line 52
def backend_path
[mounted_path.gsub(%r{/\z}, ''), backend_route].join("/")
end
|
.backend_route ⇒ Object
46
47
48
49
|
# File 'core/lib/refinery/core/configuration.rb', line 46
def backend_route
config.backend_route.to_s.gsub(%r{\A/}, '')
end
|
.clear_javascripts! ⇒ Object
56
57
58
|
# File 'core/lib/refinery/core/configuration.rb', line 56
def clear_javascripts!
self.javascripts = []
end
|
.clear_stylesheets! ⇒ Object
60
61
62
|
# File 'core/lib/refinery/core/configuration.rb', line 60
def clear_stylesheets!
self.stylesheets = []
end
|
.dragonfly_custom_backend_class ⇒ Object
64
65
66
|
# File 'core/lib/refinery/core/configuration.rb', line 64
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 'core/lib/refinery/core.rb', line 14
def root
@root ||= Pathname.new(File.expand_path('../../../', __FILE__))
end
|
.site_name ⇒ Object
68
69
70
|
# File 'core/lib/refinery/core/configuration.rb', line 68
def site_name
::I18n.t('site_name', :scope => 'refinery.core.config', :default => config.site_name)
end
|
72
73
74
|
# File 'core/lib/refinery/core/configuration.rb', line 72
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
|