Module: Nesta::Overrides
- Defined in:
- lib/nesta/overrides.rb
Defined Under Namespace
Modules: Renderers
Class Method Summary collapse
- .load_local_app ⇒ Object
- .load_theme_app ⇒ Object
- .local_view_path ⇒ Object
- .theme_view_path ⇒ Object
Class Method Details
.load_local_app ⇒ Object
34 35 36 37 |
# File 'lib/nesta/overrides.rb', line 34 def self.load_local_app app_file = Nesta::Path.local('app.rb') require app_file if File.exist?(app_file) end |
.load_theme_app ⇒ Object
39 40 41 42 43 44 |
# File 'lib/nesta/overrides.rb', line 39 def self.load_theme_app if Nesta::Config.theme app_file = Nesta::Path.themes(Nesta::Config.theme, 'app.rb') require app_file if File.exist?(app_file) end end |