Sha256: c27f55e24711e9020113c2933242fcc80a8e677cf32a50d81b12e367ddc26cf8
Contents?: true
Size: 882 Bytes
Versions: 46
Compression:
Stored size: 882 Bytes
Contents
# frozen_string_literal: true module Decidim module Verifications module Sms # This is an engine that authorizes users by sending them a code through an SMS. class Engine < ::Rails::Engine isolate_namespace Decidim::Verifications::Sms paths["db/migrate"] = nil paths["lib/tasks"] = nil routes do resource :authorizations, only: [:new, :create, :edit, :update, :destroy], as: :authorization do get :renew, on: :collection end root to: "authorizations#new" end initializer "decidim.sms_verification_workflow" do |_app| if Decidim.sms_gateway_service Decidim::Verifications.register_workflow(:sms) do |workflow| workflow.engine = Decidim::Verifications::Sms::Engine end end end end end end end
Version data entries
46 entries across 46 versions & 1 rubygems