Sha256: 800183a7550e919dc39d65b8b743bc81e3c686ee9e241f93ec33c2f3771a8f52
Contents?: true
Size: 672 Bytes
Versions: 7
Compression:
Stored size: 672 Bytes
Contents
class HomeController < ApplicationController before_action :authorize def index @data_fetch_url = url_for(controller: 'trello/cards', action: :index, only_path: false, protocol: 'https') @base_url = url_for(controller: :home, action: :index, only_path: false, protocol: 'https') @card_id = ExtensionCard.find_by(card_id_key: ExtensionCard::CARD_ID_KEY)&.card_id @card_title = ExtensionCard::CARD_TITLE end def create_card Services::Hubspot::ExtensionsCards::Create.new(request: request).call redirect_to action: :success end def success @extension_card = ExtensionCard.find_by(card_id_key: ExtensionCard::CARD_ID_KEY) end end
Version data entries
7 entries across 7 versions & 1 rubygems