Class: Decidim::AccessRequests::Verification::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/decidim/access_requests/verification/engine.rb

Overview

This is an engine that performs user authorization.

Instance Method Summary collapse

Instance Method Details

#load_seedObject



22
23
24
25
26
27
# File 'lib/decidim/access_requests/verification/engine.rb', line 22

def load_seed
  # Enable the `:access_requests` authorization
  org = Decidim::Organization.first
  org.available_authorizations << :access_requests
  org.save!
end