Sha256: f6536761f7afca22659327978a9c7a977e5ffb41837582a2d47b57154467f3cc
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 Bytes
Contents
module DeviseInvitable class Engine < ::Rails::Engine initializer "devise_invitable.add_url_helpers" do |app| ActionController::Base.send :include, DeviseInvitable::Controllers::UrlHelpers ActionView::Base.send :include, DeviseInvitable::Controllers::UrlHelpers end config.after_initialize do I18n.load_path.unshift File.expand_path(File.join(File.dirname(__FILE__), 'locales', 'en.yml')) Devise::Mailer.send :include, DeviseInvitable::Mailer end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lperichon-devise_invitable-0.3.0 | lib/devise_invitable/rails.rb |