diff options
author | Louise Crow <louise.crow@gmail.com> | 2016-04-04 14:59:27 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2016-04-06 15:42:42 +0100 |
commit | 4bd2c48f7f1f75d71b3eaed73e3893a2b42b0fee (patch) | |
tree | 88c6e500c615312a3dc2fc988d071a53064a71ec /lib/model_patches.rb | |
parent | c596594a6907ea478a3f62a6adfa8688d60412a2 (diff) |
Make code customization commented out examples.
Rather than having them be live code.
Diffstat (limited to 'lib/model_patches.rb')
-rw-r--r-- | lib/model_patches.rb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/model_patches.rb b/lib/model_patches.rb index 8abd4e8..1564dc4 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 |