Walter Davis

Joined

750 Experience
0 Lessons Completed
1 Question Solved

Activity

Posted in How do I configure GlobalID in a Rails app?

Of course, the moment I write this, I found the answer by reading the code in the railtie for the gem:

# application.rb, inside the main block:
  config.global_id.app = 'wakka'

Hope this helps someone else...

Posted in How do I configure GlobalID in a Rails app?

I am working through an elaboration on the recent screencast, using GlobalID to build references to polymorphic associations, but I need to be able to take advantage of the GlobalID.app= method, and I can't seem to find a way to hook that in the application startup. I've tried an initializer and also adding that method to the application.rb in the initialization block. Can you recommend a place where I can set the name of the app for all instances of GlobalID?