Sha256: 208c459327bc08bec46aa3e802fe0d64a9add08c47da84b1843623bdbbb96432

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

module EmberCLI
  class Railtie < Rails::Railtie
    initializer "ember-cli-rails.rack-server" do
      EmberCLI.prepare! if development_mode?
    end

    initializer "ember-cli-rails.view_helpers" do
      ActionView::Base.send :include, ViewHelpers
    end

    initializer "ember-cli-rails.inflector" do
      ActiveSupport::Inflector.inflections(:en) do |inflect|
        inflect.acronym "CLI"
      end
    end

    def development_mode?
      !Rails.env.production? && Rails.configuration.consider_all_requests_local
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ember-cli-rails-0.0.3 lib/ember-cli/railtie.rb