lib/rails-env.rb in rails-env-1.0.3 vs lib/rails-env.rb in rails-env-1.0.4

- old
+ new

@@ -1,6 +1,6 @@ -require 'rails-env/version' +require "rails-env/version" module Rails class << self env_method = instance_method(:env=) @@ -11,25 +11,26 @@ end end module RailsEnv class Railtie < Rails::Railtie - initializer 'rails-env' do + initializer "rails-env" do Rails.env.extend(Extension) end end def self.config Rails.configuration end def self.propagate_configuration! - propagate(:action_mailer, '::ActionMailer::Base') - propagate(:active_record, '::ActiveRecord::Base') - propagate(:active_job, '::ActiveJob::Base') - propagate(:action_controller, '::ActionController::Base') - propagate(:time_zone, '::Time', :zone) + propagate(:action_mailer, "::ActionMailer::Base") + propagate(:active_record, "::ActiveRecord::Base") + propagate(:active_job, "::ActiveJob::Base") + propagate(:action_controller, "::ActionController::Base") + propagate(:action_view, "::ActionView::Base") + propagate(:time_zone, "::Time", :zone) propagate_i18n end def self.propagate_i18n I18n.available_locales = (config.i18n.available_locales || []) @@ -46,10 +47,10 @@ return unless config.respond_to?(options_name) target = Object.const_get(target_name) options = config.public_send(options_name) - if options.kind_of?(Enumerable) + if options.is_a?(Enumerable) options.each do |key, value| target.public_send("#{key}=", value) if target.respond_to?("#{key}=") end else target.public_send("#{target_property}=", options)