Sha256: b50a55b666d8ee81f2a2dfb5816ada0ef9fafc454db1ec654d5d4edd244fa861

Contents?: true

Size: 823 Bytes

Versions: 4

Compression:

Stored size: 823 Bytes

Contents

require 'loldesign_publisher/version'
require 'jquery-rails'
require 'jquery-ui-rails'
require 'sass-rails'
require 'modernizr-rails'
require 'simple_form'
require 'bourbon'
require 'neat'
require 'bitters'
require 'refills'
require 'normalize-rails'
require 'loldesign_publisher/engine'

module LoldesignPublisher
  class << self
    attr_accessor :config, :root_path
  end

  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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
loldesign_publisher-2.0.0 lib/loldesign_publisher.rb
loldesign_publisher-1.5.1 lib/loldesign_publisher.rb
loldesign_publisher-1.5.0 lib/loldesign_publisher.rb
loldesign_publisher-1.4.0 lib/loldesign_publisher.rb