lib/bjond-app-definition.rb in bjond-api-0.1.4 vs lib/bjond-app-definition.rb in bjond-api-0.1.5

- old
+ new

@@ -6,9 +6,11 @@ def initialize() self.id = SecureRandom.uuid self.configURL = "http://#{self.get_hostname}/bjond-app/services" self.rootEndpoint = "http://#{self.get_hostname}/bjond-app/services" + self.integrationEvent = [] + self.integrationConsequence = [] end def get_hostname() Rails.application.config.action_controller.default_url_options ? Rails.application.config.action_controller.default_url_options[:host] : nil || `hostname` end \ No newline at end of file