Module: Nesta::Overrides

Defined in:
lib/nesta/overrides.rb

Defined Under Namespace

Modules: Renderers

Class Method Summary (collapse)

Class Method Details

+ (Object) load_local_app



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

+ (Object) load_theme_app



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