Class: FestivityPerformance

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/festivity_performance.rb

Instance Method Summary collapse

Instance Method Details

#areaObject



25
26
27
28
# File 'app/models/festivity_performance.rb', line 25

def area
  location = FestivityLocationPage.find_by_id(self.location_page_id).parent_id
  FestivityLocationAreaPage.find_by_id(location).title
end

#end_date=(date) ⇒ Object



13
14
15
# File 'app/models/festivity_performance.rb', line 13

def end_date=(date)
  super(parse_date(date))
end

#festivity_location_page=(location) ⇒ Object



17
18
19
# File 'app/models/festivity_performance.rb', line 17

def festivity_location_page=(location)
  super(FestivityLocationPage.find(location[:id])) unless location[:id].blank?
end

#locationObject



21
22
23
# File 'app/models/festivity_performance.rb', line 21

def location
  FestivityLocationPage.find_by_id(self.location_page_id).title
end

#start_date=(date) ⇒ Object



9
10
11
# File 'app/models/festivity_performance.rb', line 9

def start_date=(date)
  super(parse_date(date))
end