parent
709c6685a9
commit
1dad72bf13
@ -0,0 +1,11 @@
|
|||||||
|
module RoutingHelper
|
||||||
|
extend ActiveSupport::Concern
|
||||||
|
include Rails.application.routes.url_helpers
|
||||||
|
include GrapeRouteHelpers::NamedRouteMatcher
|
||||||
|
|
||||||
|
included do
|
||||||
|
def default_url_options
|
||||||
|
ActionMailer::Base.default_url_options
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -1,3 +1,5 @@
|
|||||||
class User < ActiveRecord::Base
|
class User < ActiveRecord::Base
|
||||||
belongs_to :account, inverse_of: :user
|
belongs_to :account, inverse_of: :user
|
||||||
|
|
||||||
|
validates :account, presence: true
|
||||||
end
|
end
|
||||||
|
@ -1 +1,6 @@
|
|||||||
LOCAL_DOMAIN = ENV['LOCAL_DOMAIN'] || 'localhost'
|
LOCAL_DOMAIN = ENV['LOCAL_DOMAIN'] || 'localhost'
|
||||||
|
HUB_URL = ENV['HUB_URL'] || 'https://pubsubhubbub.superfeedr.com'
|
||||||
|
|
||||||
|
Rails.application.configure do
|
||||||
|
config.action_mailer.default_url_options = { host: LOCAL_DOMAIN }
|
||||||
|
end
|
||||||
|
Loading…
Reference in new issue