aboutsummaryrefslogtreecommitdiffstats
path: root/lib/model_patches.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2016-04-26 11:39:52 +0100
committerLouise Crow <louise.crow@gmail.com>2016-04-26 11:39:52 +0100
commitc7ea96ca87e6a4293247c47b7e4991477de56967 (patch)
tree7eb1ddca092342f245b1a877764085ad04603b89 /lib/model_patches.rb
parentc596594a6907ea478a3f62a6adfa8688d60412a2 (diff)
parent62b5ac9fab138f17bfe8cfa7654af75ca341f55b (diff)
Merge branch 'remove-examples'
Diffstat (limited to 'lib/model_patches.rb')
-rw-r--r--lib/model_patches.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/model_patches.rb b/lib/model_patches.rb
index 8abd4e8..7f3b4de 100644
--- a/lib/model_patches.rb
+++ b/lib/model_patches.rb
@@ -5,11 +5,13 @@
# See http://stackoverflow.com/questions/7072758/plugin-not-reloading-in-development-mode
#
Rails.configuration.to_prepare do
- OutgoingMessage.class_eval do
- # Add intro paragraph to new request template
- def default_letter
- return nil if self.message_type == 'followup'
- #"If you uncomment this line, this text will appear as default text in every message"
- end
- end
+
+ # Example of adding a default text to each message
+ # OutgoingMessage.class_eval do
+ # # Add intro paragraph to new request template
+ # def default_letter
+ # return nil if self.message_type == 'followup'
+ # "If you uncomment this line, this text will appear as default text in every message"
+ # end
+ # end
end