Sha256: e20022f6c08f40c866645eb75dac2749d812534e2637b09afb18cdde356fc75c
Contents?: true
Size: 930 Bytes
Versions: 18
Compression:
Stored size: 930 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_verifications_sms.workflow" do |_app| if Decidim.sms_gateway_service Decidim::Verifications.register_workflow(:sms) do |workflow| workflow.engine = Decidim::Verifications::Sms::Engine workflow.icon = "message-3-line" end end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems