Sha256: 3c4383a103bb66c4b3802d6626458299c4b50da67aef2cdd14aa7c5b29eb5205

Contents?: true

Size: 367 Bytes

Versions: 7

Compression:

Stored size: 367 Bytes

Contents

module Mashery
  def self.load_rails_config!
    if File.exists? rails_config
      load_config! rails_config
    else
      # raise MissingConfig.new
    end
  end

  def self.rails_config
    Rails.root.join("config", "mashery.yml")
  end

  class Engine < ::Rails::Engine
    initializer "load_mashery_config" do
      Mashery.load_rails_config!
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mashery_rails-0.6.9.pre4 lib/mashery/rails.rb
mashery_rails-0.6.9.pre3 lib/mashery/rails.rb
mashery_rails-0.6.9.pre1 lib/mashery/rails.rb
mashery_rails-0.6.8 lib/mashery/rails.rb
mashery_rails-0.6.7 lib/mashery/rails.rb
mashery_rails-0.6.6 lib/mashery/rails.rb
mashery_rails-0.6.3 lib/mashery/rails.rb