Sha256: cf8f13cff3dc918fae3cbc43a4151d98a33512544f9f2f8560676615f9a2ba11

Contents?: true

Size: 483 Bytes

Versions: 2

Compression:

Stored size: 483 Bytes

Contents

require_dependency "bot_mob/rails/application_controller"

module BotMob
  module Rails
    class AuthenticationController < ApplicationController
      def index
        BotMob.roster.authority.process(bot)

        redirect_to setup_path, notice: 'Thanks for installing!'
      end

      private

      def authority
        @authority ||= BotMob::Authority.new(network, params[:code])
      end

      def network
        params[:network].to_s.to_sym
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bot_mob_rails-0.0.2 app/controllers/bot_mob/rails/authentication_controller.rb
bot_mob_rails-0.0.1 app/controllers/bot_mob/rails/authentication_controller.rb