diff options
author | lizconlan <liz@mysociety.org> | 2016-12-02 17:45:14 +0000 |
---|---|---|
committer | lizconlan <liz@mysociety.org> | 2016-12-05 17:05:43 +0000 |
commit | a26a2d5bddb3cba85cbddfc7475e2706f20e34ac (patch) | |
tree | 6747dfdb438a9cb072e70c67a769a6a5cd14d655 | |
parent | cc3fc1332e42f8c56089886035debb019fe4b445 (diff) |
Update model patch example to include the default_letter param override
-rw-r--r-- | lib/model_patches.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/model_patches.rb b/lib/model_patches.rb index 7f3b4de..b0c906f 100644 --- a/lib/model_patches.rb +++ b/lib/model_patches.rb @@ -10,6 +10,10 @@ Rails.configuration.to_prepare do # OutgoingMessage.class_eval do # # Add intro paragraph to new request template # def default_letter + # # this line allows the default_letter text added by this + # # method to be replaced by the value supplied by the API + # # e.g. http://demo.alaveteli.org/new/tgq?default_letter=this+is+a+test + # return @default_letter if @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 |