Sha256: eccf0d1a3158029804af0c24e618658ebc735ad40ddde1a4b11794f04ca5837f
Contents?: true
Size: 657 Bytes
Versions: 3
Compression:
Stored size: 657 Bytes
Contents
require 'minitext' require 'rails' module Minitext class Railtie < Rails::Railtie config.minitext = ActiveSupport::OrderedOptions.new initializer "minitext.configure" do |app| Minitext.gateway = app.config.minitext.gateway end end end # Usage: # development # config.minitext.gateway = Minitext::TestGateway.new # production # config.minitext.gateway = Minitext::TwilioGateway.new(sid: '123', token: 'abc') # staging # whitelist = YAML.load_file('twilio_whitelist') # gateway = Minitext::TwilioGateway.new(sid: '123', token: 'abc') # config.minitext.gateway = Minitext::WhitelistProxy.new(whitelist: whitelist, gateway: gateway)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
minitext-0.0.8 | lib/minitext/railtie.rb |
minitext-0.0.7 | lib/minitext/railtie.rb |
minitext-0.0.6 | lib/minitext/railtie.rb |