Module: Ende

Defined in:
lib/ende.rb,
lib/ende/version.rb

Defined Under Namespace

Classes: Railtie

Constant Summary collapse

VERSION =
"0.5.22"

Class Method Summary collapse

Class Method Details

.assetsObject



56
57
58
59
# File 'lib/ende.rb', line 56

def Ende.assets
  assets = Railtie.config.assets rescue nil
  assets or Rails.application.config.assets
end

.load_widget_extensionsObject



49
50
51
52
53
54
# File 'lib/ende.rb', line 49

def Ende.load_widget_extensions
  current_dir = Pathname.new(__FILE__).parent.parent
  Dir.glob(current_dir.join 'lib', 'assets', '**', '*.rb').each do |extension|
    require extension
  end
end