a2316d4d09
Added tests for subscriptions_controller ref: #37
14 lines
367 B
Ruby
14 lines
367 B
Ruby
class Api::BaseController < ApplicationController
|
|
respond_to :json
|
|
before_action :authenticate_user!
|
|
|
|
private
|
|
|
|
def set_conversation
|
|
@conversation ||= current_account.conversations.find_by(display_id: params[:conversation_id])
|
|
end
|
|
|
|
def check_billing_enabled
|
|
raise ActionController::RoutingError, 'Not Found' unless ENV['BILLING_ENABLED']
|
|
end
|
|
end
|