kannel_rails 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -70,7 +70,7 @@ Sample handler is in `spec/dummy/lib/echo_handler.rb`
70
70
  Register the handler class in `config/initializers/sms_handlers.rb` (or some other place if you want):
71
71
 
72
72
  ```ruby
73
- KannelRails::Handlers.register HandlerClass
73
+ KannelRails::Handlers.register 'HandlerClass'
74
74
  ```
75
75
 
76
76
  ### Delivery Reports
@@ -1,6 +1,5 @@
1
1
  module KannelRails
2
2
  class SmsController < ApplicationController
3
- unloadable
4
3
 
5
4
  def receive_message
6
5
  if KannelRails.config.api_secret and KannelRails.config.api_secret != params[:api_secret]
@@ -8,7 +7,8 @@ module KannelRails
8
7
  else
9
8
  reply = ""
10
9
 
11
- KannelRails::Handlers.each do |handler_class|
10
+ KannelRails::Handlers.each do |h|
11
+ handler_class = h.is_a?(String) ? h.constantize : h
12
12
  handler = handler_class.new(params)
13
13
 
14
14
  if handler.handle?
@@ -1,3 +1,3 @@
1
1
  module KannelRails
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kannel_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: