Atualizando para o Rails 2.3.2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user