1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-23 23:29:39 +02:00
Maybe/app/controllers/concerns/self_hostable.rb
Zach Gollwitzer 5dfbba403a
Test environment stability improvements (#703)
* 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
2024-05-02 13:18:18 -04:00

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