Commits

Anonymous committed c289049

modified lib/instedd_rails/config.rb to set application_name through rails application

Comments (0)

Files changed (1)

lib/instedd_rails/config.rb

     config_accessor :version_name
 
     def initialize
-      self.application_name = ::Rails.application.class.parent_name
+      self.application_name = ::Rails.application.class.config.application_name rescue ::Rails.application.class.parent_name
       self.google_analytics = ::Rails.application.class.config.google_analytics
       self.version_name = ::Rails.application.class.config.version_name
     end
   end
 
-end
+end