Module: Nesta::Overrides

Defined in:
lib/nesta/overrides.rb

Defined Under Namespace

Modules: Renderers

Class Method Summary collapse

Class Method Details

.load_local_appObject



31
32
33
34
# File 'lib/nesta/overrides.rb', line 31

def self.load_local_app
  app_file = Nesta::Path.local('app.rb')
  require app_file if File.exist?(app_file)
end

.load_theme_appObject



36
37
38
39
40
41
# File 'lib/nesta/overrides.rb', line 36

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