Class: Slimmer::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- Slimmer::Railtie
- Defined in:
- lib/slimmer/railtie.rb
Class Method Summary collapse
-
.parent_name(app) ⇒ Object
TODO: remove this method when all our apps are in rails 6 and substitute it with: app_name = ENV || app.class.module_parent_name.
Class Method Details
.parent_name(app) ⇒ Object
TODO: remove this method when all our apps are in rails 6 and substitute it with: app_name = ENV || app.class.module_parent_name
15 16 17 18 19 20 21 |
# File 'lib/slimmer/railtie.rb', line 15 def self.parent_name(app) if app.class.respond_to?(:module_parent_name) app.class.module_parent_name else app.class.parent_name end end |