Skip to content

Commit

Permalink
Issue #150 - Refactored constants in drawing.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
EChesters committed Apr 22, 2017
1 parent 1e232df commit ea085f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/drawing.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Drawing < ActiveRecord::Base
# STAGES_OF_JOURNEY
# SUBJECT_MATTERS
STAGES_OF_JOURNEY = ["At home", "In temporary shelter", "Awaiting transit", "On the move", "Arrived at destination"].freeze
SUBJECT_MATTERS = ["Home / Country of origin", "In transit", "Camp life", "Future hopes / destination"].freeze

enum status: %i(pending complete)
enum gender: %i(not_specified female male other)
Expand Down Expand Up @@ -53,11 +53,11 @@ def self.to_csv(hxl: false)
end

def self.stages_of_journey
@stages_of_journey = ["At home", "In temporary shelter", "Awaiting transit", "On the move", "Arrived at destination"]
STAGES_OF_JOURNEY
end

def self.subject_matters
@subject_matters = ["Home / Country of origin", "In transit", "Camp life", "Future_hopes / destination"]
SUBJECT_MATTERS
end

def can_view?(current_user)
Expand Down

0 comments on commit ea085f8

Please sign in to comment.