Commit ce9bee5c authored by Andi Saurer's avatar Andi Saurer

notice added in initializer

parent 9ca00c71
......@@ -30,3 +30,21 @@ Create a message and deliver it:
@sms = ShortMessage::Message.new(:sender => "0041791234567", :recipient => "0041799876543", :text => "Hello World!")
@sms.deliver
```
## Customization ##
### Status Codes ##
If you need to customize the status response codes simply edit the internationalization files in config/locales
### Params ###
To override the params string add this to an initializer file (or put it into config/initializers/short_message.rb)
```ruby
ShortMessage::Message.module_eval do
private
def build_deliver_params_string
# your code here
end
def build_recharge_params_string amount
# your code here
end
end
```
......@@ -9,10 +9,10 @@ ShortMessage.configure do |config|
config.user_id = ""
config.ccu_id = ""
config.id_string = ""
config.default_reload_amount = 1000
config.default_mail_sender = "webmaster@your-domain.com"
config.reload_notification_email = "webmaster@your-domain.com"
config.voucher_notification_email = "give-me-money@your-domain.com"
config.voucher_notification_email = "give-me-money@your-domain.com" # set nil to disable voucher mailing
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment