Module: LoldesignPublisher
- Defined in:
- lib/loldesign_publisher.rb,
lib/loldesign_publisher/engine.rb,
lib/loldesign_publisher/version.rb,
app/mailers/loldesign_publisher/contact_mailer.rb,
app/helpers/loldesign_publisher/publisher_helper.rb,
lib/generators/loldesign_publisher/views_generator.rb,
lib/generators/loldesign_publisher/install_generator.rb,
app/controllers/loldesign_publisher/publisher_controller.rb,
lib/generators/loldesign_publisher/mailer_config_generator.rb
Defined Under Namespace
Modules: PublisherHelper, Rails Classes: ActivablesController, ContactMailer, InstallGenerator, MailerConfigGenerator, PublisherController, ViewsGenerator
Constant Summary collapse
- VERSION =
"2.0.0"
Class Attribute Summary collapse
-
.config ⇒ Object
Returns the value of attribute config.
-
.root_path ⇒ Object
Returns the value of attribute root_path.
Class Method Summary collapse
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
16 17 18 |
# File 'lib/loldesign_publisher.rb', line 16 def config @config end |
.root_path ⇒ Object
Returns the value of attribute root_path.
16 17 18 |
# File 'lib/loldesign_publisher.rb', line 16 def root_path @root_path end |
Class Method Details
.read_config ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/loldesign_publisher.rb', line 19 def self.read_config config = YAML.load_file("#{LoldesignPublisher.root_path}/config/loldesign_publisher.yml") config.symbolize_keys! self.config = { logo: config[:paths]['logo'], logout: config[:paths]['logout'], menu_links: config[:paths]['menu_links'], page_title: config[:page_title] } rescue Exception puts '[WARNING] run: bundle exec rails g initializer' end |