aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-09-05 12:32:17 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-09-05 12:32:17 +0100
commit7f0ae82d44873b53cc87c659b42415ce4866c7b4 (patch)
treefdce14b0658bb05aef087dd4e09dc25c9a79ea8c /spec/models
parent2926ee877bcf8974c529e1271ded42971fe0d632 (diff)
parent96c4dd912083edcd0c9eda76bd2301bb4a1a6d53 (diff)
Merge branch 'develop' of github.com:sebbacon/alaveteli into develop, fix conflicts
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/customstates.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/models/customstates.rb b/spec/models/customstates.rb
index 406d4ead9..3488e6730 100644
--- a/spec/models/customstates.rb
+++ b/spec/models/customstates.rb
@@ -5,16 +5,6 @@ module InfoRequestCustomStates
end
# Mixin methods for InfoRequest
- def theme_display_status(status)
- if status == 'deadline_extended'
- _("Deadline extended.")
- elsif status == 'wrong_response'
- _("Wrong Response.")
- else
- raise _("unknown status ") + status
- end
- end
-
def theme_calculate_status
return 'waiting_classification' if self.awaiting_description
waiting_response = self.described_state == "waiting_response" || self.described_state == "deadline_extended"
@@ -41,6 +31,16 @@ module InfoRequestCustomStates
end
module ClassMethods
+ def theme_display_status(status)
+ if status == 'deadline_extended'
+ _("Deadline extended.")
+ elsif status == 'wrong_response'
+ _("Wrong Response.")
+ else
+ raise _("unknown status ") + status
+ end
+ end
+
def theme_extra_states
return ['deadline_extended',
'wrong_response']