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
48 49 50 51 |
# File 'lib/nesta/overrides.rb', line 48 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
53 54 55 56 57 58 |
# File 'lib/nesta/overrides.rb', line 53 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 |