mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-23 23:29:39 +02:00
* Add climate_control gem and test helper * Replace ENV mods in upgrades test * Replace ENV mods in registrations test * Remove ENV references in hostings controller * Update ENV refs in mailer test * ActiveStorage cleanup * Consolidate queue config so appropriate adapter runs in test environment * Make test environment more explicit * Centralize self hosting config * Remove flaky system test
12 lines
197 B
Ruby
12 lines
197 B
Ruby
module SelfHostable
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
helper_method :self_hosted?
|
|
end
|
|
|
|
private
|
|
def self_hosted?
|
|
Rails.configuration.app_mode.self_hosted?
|
|
end
|
|
end
|