This project is archived and is in readonly mode.
Rails assumes too much about the name of the "production" environment
-
Pavel Lazureykis
Can you override this method?
config/initializers/00_production_environments.rb
module ActiveSupport
class StringInquirer < Stringdef production? %w(production prod1 prod2).include? self endend end
-
Steven Soroka
- Tag changed from environments, production to environments, invalid, production
For such a special case, just override what production means like Pavel suggested.
-1
-
Brian Ploetz
Yes, of course we can just monkey patch ActiveSupport::StringInquirer.production? like that. That just seems a little brittle to me. My larger point was that as more and more SaaS apps get built with Rails, this may not be such a special case.