module Decidim::Notify
This namespace holds the logic of the `Notify` component. This component allows users to create notify in a participatory space.
This holds the decidim-notify version.
Constants
- MIN_DECIDIM_VERSION
- VERSION
Public Class Methods
cable()
click to toggle source
# File lib/decidim/notify.rb, line 15 def cable return @cable if @cable @cable = ActionCable::Server::Configuration.new @cable.mount_path = config.cable_mount_path @cable.connection_class = -> { Decidim::Notify::Connection } @cable.url = config.cable_url @cable.cable = { "adapter" => config.cable_adapter, "channel_prefix" => config.cable_channel_prefix } @cable end
server()
click to toggle source
# File lib/decidim/notify.rb, line 29 def server return @server if @server @server = ActionCable::Server::Base.new @server.config = cable @server end