Class: Essence::ApplicationComponent

Inherits:
ViewComponent::Base
  • Object
show all
Extended by:
Utils
Includes:
FetchOrFallbackHelper
Defined in:
app/components/essence/application_component.rb

Constant Summary

Constants included from FetchOrFallbackHelper

FetchOrFallbackHelper::InvalidValueError

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Utils

get_directory_file_names

Methods included from FetchOrFallbackHelper

#fetch_or_fallback, #fetch_or_fallback_boolean, #integer_or_fallback

Class Method Details

.assets_pathObject



13
14
15
# File 'app/components/essence/application_component.rb', line 13

def assets_path
  name.underscore
end

.images_directoryObject



9
10
11
# File 'app/components/essence/application_component.rb', line 9

def images_directory
  Essence::Engine.root.join("app/assets/images/#{assets_path}")
end

Instance Method Details

#assets_pathObject



18
19
20
# File 'app/components/essence/application_component.rb', line 18

def assets_path
  self.class.assets_path
end