23 Replies Latest reply on Jul 17, 2012 10:32 AM by Juan Pastas

    Is there a method to know the RhoConnect app_endpoint from a source adapter?

      In my Rails application, I'm using rhoconnect-rb with this configuration:

       

      Rhoconnect.configure do |config|
        config.uri          = "http://localhost:9292"
        config.token        = "30d8f4315d774eff87c06a656d379b88"
        config.app_endpoint = "http://localhost:3000"
      end
      
      

       

      Is there a method to know the RhoConnect app_endpoint from a source adapter?

       

      By the way, I wrote a source adapter (MySourceAdapter) that matches Rails default API, the usage is something like:

       

      class Company < MySourceAdapter
      end
      
      

       

      And it's ready to go with a Rails application. It lightly depends on activesupport gem

       

      Do you think that it's helpful/contributable?