about summary refs log tree commit diff stats
path: root/data/maps/the_plaza/rooms/Center Room.txtpb
blob: dea2d06e60ca5366a64c207e6ab97bdf960f22d4 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: "Center Room"
panels {
  name: "REPORTER"
  path: "Panels/Room 2/panel_1"
  clue: "reporter"
  answer: "news"
  symbols: JOB
}
panels {
  name: "BIRD"
  path: "Panels/Room 2/panel_2"
  clue: "bird"
  answer: "nest"
  symbols: STARS
}
panels {
  name: "FOX"
  path: "Panels/Room 2/panel_3"
  clue: "fox"
  answer: "den"
  symbols: STARS
}
panels {
  name: "JUDGE"
  path: "Panels/Room 2/panel_4"
  clue: "judge"
  answer: "law"
  symbols: JOB
}
panels {
  name: "DENTIST"
  path: "Panels/Room 2/panel_5"
  clue: "dentist"
  answer: "teeth"
  symbols: JOB
}
panels {
  name: "SQUIRREL"
  path: "Panels/Room 2/panel_6"
  clue: "squirrel"
  answer: "tree"
  symbols: STARS
}
>class Comment < ApplicationRecord extend Enumerize belongs_to :blog has_many :replies, class_name: "Comment", foreign_key: "reply_to_id" belongs_to :reply_to, class_name: "Comment", optional: 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