fossil 0.3.29 → 0.3.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/fossil.gemspec +1 -1
- data/lib/models/trip_leg.rb +10 -6
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.30
|
data/fossil.gemspec
CHANGED
data/lib/models/trip_leg.rb
CHANGED
|
@@ -625,10 +625,14 @@ class TripLeg < Sequel::Model(:'trip legs')
|
|
|
625
625
|
#### END GENERATED SECTION ####
|
|
626
626
|
|
|
627
627
|
# delegators
|
|
628
|
-
delegate :lead_pax,
|
|
629
|
-
delegate :passenger_list,
|
|
630
|
-
delegate :name,
|
|
631
|
-
delegate :name,
|
|
628
|
+
delegate :lead_pax, :to => :trip
|
|
629
|
+
delegate :passenger_list, :to => :trip
|
|
630
|
+
delegate :name, :to => :arrival_airport, :prefix=>true, :allow_nil=>true
|
|
631
|
+
delegate :name, :to => :departure_airport, :prefix=>true, :allow_nil=>true
|
|
632
|
+
delegate :city, :to => :arrival_airport, :prefix=>true, :allow_nil=>true
|
|
633
|
+
delegate :city, :to => :departure_airport, :prefix=>true, :allow_nil=>true
|
|
634
|
+
delegate :state_abbreviation, :to => :arrival_airport, :prefix=>true, :allow_nil=>true
|
|
635
|
+
delegate :state_abbreviation, :to => :departure_airport, :prefix=>true, :allow_nil=>true
|
|
632
636
|
|
|
633
637
|
# Column views
|
|
634
638
|
column_view :dept_date_act_gmt, :date, :actual_departure_date_gmt
|
|
@@ -730,10 +734,10 @@ class TripLeg < Sequel::Model(:'trip legs')
|
|
|
730
734
|
end
|
|
731
735
|
|
|
732
736
|
def departure_icao_expanded
|
|
733
|
-
"#{departure_icao_val} #{departure_airport_name} #{
|
|
737
|
+
"#{departure_icao_val} #{departure_airport_name} #{departure_airport_city} ,#{departure_airport_state_abbreviation}"
|
|
734
738
|
end
|
|
735
739
|
|
|
736
740
|
def arrival_icao_expanded
|
|
737
|
-
"#{arrival_icao_val} #{arrival_airport_name} #{
|
|
741
|
+
"#{arrival_icao_val} #{arrival_airport_name} #{arrival_airport_city} ,#{arrival_airport_state_abbreviation}"
|
|
738
742
|
end
|
|
739
743
|
end
|