Remove redundant method
This commit is contained in:
parent
3bf8b2472d
commit
5dc379fe6a
1 changed files with 0 additions and 18 deletions
|
|
@ -68,24 +68,6 @@ class Conference < ActiveRecord::Base
|
||||||
|
|
||||||
after_create :create_free_ticket
|
after_create :create_free_ticket
|
||||||
|
|
||||||
def date_range_string
|
|
||||||
startstr = 'Unknown - '
|
|
||||||
endstr = 'Unknown'
|
|
||||||
if start_date.month == end_date.month && start_date.year == end_date.year
|
|
||||||
startstr = start_date.strftime('%B %d - ')
|
|
||||||
endstr = end_date.strftime('%d, %Y')
|
|
||||||
elsif start_date.month != end_date.month && start_date.year == end_date.year
|
|
||||||
startstr = start_date.strftime('%B %d - ')
|
|
||||||
endstr = end_date.strftime('%B %d, %Y')
|
|
||||||
else
|
|
||||||
startstr = start_date.strftime('%B %d, %Y - ')
|
|
||||||
endstr = end_date.strftime('%B %d, %Y')
|
|
||||||
end
|
|
||||||
|
|
||||||
result = startstr + endstr
|
|
||||||
result
|
|
||||||
end
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# Checks if the user is registered to the conference
|
# Checks if the user is registered to the conference
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue