Module: Refinery::Core
- Includes:
- ActiveSupport::Configurable
- Defined in:
- lib/refinery/core.rb,
lib/refinery/core/engine.rb,
lib/refinery/core/configuration.rb,
app/models/refinery/core/base_model.rb
Defined Under Namespace
Classes: BaseModel, Engine, Stylesheet
Class Method Summary
collapse
Class Method Details
.clear_javascripts! ⇒ Object
41
42
43
|
# File 'lib/refinery/core/configuration.rb', line 41
def clear_javascripts!
self.javascripts = []
end
|
.clear_stylesheets! ⇒ Object
45
46
47
|
# File 'lib/refinery/core/configuration.rb', line 45
def clear_stylesheets!
self.stylesheets = []
end
|
.root ⇒ Object
193
194
195
|
# File 'lib/refinery/core.rb', line 193
def root
@root ||= Pathname.new(File.expand_path('../../../', __FILE__))
end
|
.site_name ⇒ Object
49
50
51
|
# File 'lib/refinery/core/configuration.rb', line 49
def site_name
::I18n.t('site_name', :scope => 'refinery.core.config', :default => config.site_name)
end
|