Sha256: 837e27de69acdd732b7780a8f690a9efc0753339a26e7ecd52619d989e1b8f29

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

require 'rails/railtie'

module Ripple
  # Railtie for automatic initialization of the Ripple framework
  # during Rails initialization.
  class Railtie < Rails::Railtie
    rake_tasks do
      load "ripple/railties/ripple.rake"
    end

    initializer "ripple.configure_rails_initialization" do
      if File.exist?(Rails.root + "config/ripple.yml")
        Ripple.load_configuration Rails.root.join('config', 'ripple.yml'), [Rails.env]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ripple-1.0.0.beta lib/ripple/railtie.rb