|
@@ -63,7 +63,11 @@ end
|
|
|
|
|
|
def set_application_name
|
|
|
# Add Application Name to Config
|
|
|
- environment "config.application_name = Rails.application.class.parent_name"
|
|
|
+ if rails_5?
|
|
|
+ environment "config.application_name = Rails.application.class.parent_name"
|
|
|
+ else
|
|
|
+ environment "config.application_name = Rails.application.class.module_parent_name"
|
|
|
+ end
|
|
|
|
|
|
# Announce the user where he can change the application name in the future.
|
|
|
puts "You can change application name inside: ./config/application.rb"
|