Sha256: efa448443702d27b1045f837b23595df64c2848b57b861a0dd8a9dd4cc576da9

Contents?: true

Size: 341 Bytes

Versions: 1

Compression:

Stored size: 341 Bytes

Contents

module Alondra

  class PushingException < StandardError; end

  module Pushing
    def push(*args)
      raise PushingException.new('You need to specify the channel to push') unless args.last[:to].present?

      to = args.last.delete(:to)
      controller = PushController.new(self, to)
      controller.render_push(args)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alondra-0.0.3 lib/alondra/pushing.rb