Skip to content

Commit

Permalink
Really fix deprecations.
Browse files Browse the repository at this point in the history
  • Loading branch information
seancribbs committed Oct 18, 2008
1 parent d19c1d9 commit 9c29182
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def pluralize(count, singular, plural = nil)
elsif plural
plural
else
Inflector.pluralize(singular)
ActiveSupport::Inflector.pluralize(singular)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/local_time.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module LocalTime
def adjust_time(time)
if (tz_string = Radiant::Config["local.timezone"]) and
timezone = (TimeZone[tz_string] || TimeZone[tz_string.to_i])
timezone = (ActiveSupport::TimeZone[tz_string] || ActiveSupport::TimeZone[tz_string.to_i])
# adjust time
time.in_time_zone(timezone).time
else
Expand Down
6 changes: 0 additions & 6 deletions lib/plugins/dependencies_fix/init.rb

This file was deleted.

2 changes: 1 addition & 1 deletion spec/models/standard_tags_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@
it "should use the configured local timezone" do
Radiant::Config["local.timezone"] = "Tokyo"
format = "%H:%m"
expected = page.published_at.in_time_zone(TimeZone['Tokyo']).strftime(format)
expected = page.published_at.in_time_zone(ActiveSupport::TimeZone['Tokyo']).strftime(format)
page.should render(%Q(<r:date format="#{format}" />) ).as(expected)
end
end
Expand Down

0 comments on commit 9c29182

Please sign in to comment.