Rails 2.1.2 deprecations (#2332).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2134 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
040d0a32d2
commit
e2952d3e5f
@ -144,7 +144,7 @@ class User < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def time_zone
|
def time_zone
|
||||||
@time_zone ||= (self.pref.time_zone.blank? ? nil : TimeZone[self.pref.time_zone])
|
@time_zone ||= (self.pref.time_zone.blank? ? nil : ActiveSupport::TimeZone[self.pref.time_zone])
|
||||||
end
|
end
|
||||||
|
|
||||||
def wants_comments_in_reverse_order?
|
def wants_comments_in_reverse_order?
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
<div class="box tabular">
|
<div class="box tabular">
|
||||||
<% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %>
|
<% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %>
|
||||||
<p><%= pref_fields.check_box :hide_mail %></p>
|
<p><%= pref_fields.check_box :hide_mail %></p>
|
||||||
<p><%= pref_fields.select :time_zone, TimeZone.all.collect {|z| [ z.to_s, z.name ]}, :include_blank => true %></p>
|
<p><%= pref_fields.select :time_zone, ActiveSupport::TimeZone.all.collect {|z| [ z.to_s, z.name ]}, :include_blank => true %></p>
|
||||||
<p><%= pref_fields.select :comments_sorting, [[l(:label_chronological_order), 'asc'], [l(:label_reverse_chronological_order), 'desc']] %></p>
|
<p><%= pref_fields.select :comments_sorting, [[l(:label_chronological_order), 'asc'], [l(:label_reverse_chronological_order), 'desc']] %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
2
vendor/plugins/actionwebservice/init.rb
vendored
2
vendor/plugins/actionwebservice/init.rb
vendored
@ -1,7 +1,7 @@
|
|||||||
require 'action_web_service'
|
require 'action_web_service'
|
||||||
|
|
||||||
# These need to be in the load path for action_web_service to work
|
# These need to be in the load path for action_web_service to work
|
||||||
Dependencies.load_paths += ["#{RAILS_ROOT}/app/apis"]
|
ActiveSupport::Dependencies.load_paths += ["#{RAILS_ROOT}/app/apis"]
|
||||||
|
|
||||||
# AWS Test helpers
|
# AWS Test helpers
|
||||||
require 'action_web_service/test_invoke' if ENV['RAILS_ENV'] && ENV['RAILS_ENV'] =~ /^test/
|
require 'action_web_service/test_invoke' if ENV['RAILS_ENV'] && ENV['RAILS_ENV'] =~ /^test/
|
||||||
|
@ -97,8 +97,8 @@ module ActionController
|
|||||||
"Unknown options: #{unknown_option_keys.join(', ')}" unless
|
"Unknown options: #{unknown_option_keys.join(', ')}" unless
|
||||||
unknown_option_keys.empty?
|
unknown_option_keys.empty?
|
||||||
|
|
||||||
options[:singular_name] ||= Inflector.singularize(collection_id.to_s)
|
options[:singular_name] ||= ActiveSupport::Inflector.singularize(collection_id.to_s)
|
||||||
options[:class_name] ||= Inflector.camelize(options[:singular_name])
|
options[:class_name] ||= ActiveSupport::Inflector.camelize(options[:singular_name])
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns a paginator and a collection of Active Record model instances
|
# Returns a paginator and a collection of Active Record model instances
|
||||||
|
@ -140,4 +140,4 @@ module Engines::RailsExtensions::Dependencies
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Dependencies.send :include, Engines::RailsExtensions::Dependencies
|
ActiveSupport::Dependencies.send :include, Engines::RailsExtensions::Dependencies
|
||||||
|
Loading…
x
Reference in New Issue
Block a user