Quellcode durchsuchen

add recent events

Kylie Jo Swistak vor 5 Jahren
Ursprung
Commit
9c0f28c856
2 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 2 0
      app/models/characters.rb
  2. 3 0
      app/responses/character.rb

+ 2 - 0
app/models/characters.rb

@@ -24,6 +24,7 @@ class Character < ActiveRecord::Base
       "Warnings" => "warnings",
       "Rumors" => "rumors",
       "Backstory" => "backstory",
+      "Recent Events" => "recent_events",
       "Other" => "other",
       "Rating" => "rating",
       "Current Location" => "location",
@@ -48,6 +49,7 @@ class Character < ActiveRecord::Base
       "dislikes" => nil,
       "personality" => nil,
       "backstory" => nil,
+      "recent_events" => nil,
       "other" => nil,
       "edit_url" => nil,
       "active" => nil,

+ 3 - 0
app/responses/character.rb

@@ -94,6 +94,9 @@ def char_bio(char, fields, char_teams)
   fields.push(
     { name: 'Backstory', value: char.backstory }
   )if char.backstory
+  fields.push(
+    { name: 'Recent Events', value: char.recent_events }
+  )if char.recent_events
   fields.push(
     { name: 'Other', value: char.other }
   )if char.other