Skip to content

Commit

Permalink
Quick fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitrij Denissenko committed Mar 31, 2009
1 parent d0ec4de commit 20133ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/helpers/format_helper.rb
Expand Up @@ -2,14 +2,17 @@ module FormatHelper
include NavigationHelper

def datetime_format(datetime)
return '' unless datetime
I18n.l datetime.to_time, :format => RetroCM[:content][:format][:datetime]
end

def date_format(datetime)
return '' unless datetime
I18n.l datetime.to_date, :format => RetroCM[:content][:format][:date]
end

def time_format(datetime)
return '' unless datetime
I18n.l datetime, :format => RetroCM[:content][:format][:time]
end

Expand Down
2 changes: 1 addition & 1 deletion app/models/association_proxies/active_user_projects.rb
Expand Up @@ -11,7 +11,7 @@ def initialize(user)
super(records)
end

def find(*args)
def find(param)
case param
when String
detect {|i| i.to_param == param }
Expand Down

0 comments on commit 20133ec

Please sign in to comment.