Atualizando para o Rails 2.3.2

This commit is contained in:
2009-07-16 11:55:04 -03:00
parent dcfc38eb09
commit 8e9b698944
71 changed files with 220 additions and 173 deletions

View File

@@ -20,7 +20,9 @@ module ApplicationHelper
# Converte para o timezone local
def tz(time_at)
TzTime.zone.utc_to_local(time_at.utc)
#FIXME
#TzTime.zone.utc_to_local(time_at.utc)
time_at
end
FLASH_NAMES = [:notice, :warning, :message]
@@ -59,6 +61,7 @@ module ApplicationHelper
def highlight(name)
return {:class => 'highlight'} if (flash[:highlight] == name)
return {}
end
def spinner(name)
@@ -84,4 +87,8 @@ module ApplicationHelper
html_options.merge!({:class => 'icon', :alt => description, :title => description})
link_to(image_tag("action/#{action_name}.gif", :title => description), options, html_options)
end
def format_period(period)
return "20#{period[0..1]}.#{period[2..2]}"
end
end