about summary refs log tree commit diff stats
path: root/data/maps/the_entry/rooms/Lime Room.txtpb
blob: e94f77534f2eb68df964acabbce96cd4204d932e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: "Lime Room"
panel_display_name: "Colored Doors Area"
panels {
  name: "HIDE"
  path: "Panels/Back Left/backleft_proxying_3"
  clue: "hide"
  answer: "hide"
}
panels {
  name: "SEEK"
  path: "Panels/Back Left/backleft_proxying_4"
  clue: "seek"
  answer: "seek"
}
panels {
  name: "COLOR"
  path: "Panels/Back Left/backleft_proxying_5"
  clue: "color"
  answer: "white"
  symbols: EXAMPLE
}
ports {
  name: "REVITALIZED"
  path: "worldport7"
  orientation: "north"
  required_door { name: "Revitalized Entrance" }
}
: true validates :body, presence: true validates :username, presence: true validates :email, presence: true, format: URI::MailTo::EMAIL_REGEXP scope :published_and_ordered, -> { where(status: :published).order(published_at: :asc) } enumerize :status, in: [:published, :pending, :rejected], default: :published, predicates: true before_save :set_published_at def gravatar_url hash = Digest::MD5.hexdigest(email) "https://www.gravatar.com/avatar/#{hash}?size=40&default=identicon&rating=g" end private def set_published_at if self.published? if self.published_at.blank? self.published_at = DateTime.now end else self.published_at = nil end end end