It seems like you could generate your Thrift definition files, and then add
"lib/thrift/gen-rb" or what have you to your load_path.

You might have to explicitly require each Thrift class in a separate file,
however, aka:

In config/initializers/thrift.rb:
----------------------
$LOAD_PATH.unshift(File.dirname(__FILE__) + "/../../lib/thrift/gen-rb")

require 'my_thrift_file'
require 'my_other_thrift_file'

HTH,
David

On Tue, Jun 30, 2009 at 8:31 AM, Chris White <[email protected]> wrote:

>
> Hi again all,
>
> A general architecture question regarding the usage of Thrift within a
> Rails application. What are the best practices for integration of Thrift in
> this environment? Has anyone done so? So far I have managed to use Rack with
> success, but was curious if anyone has come up with a tighter integration
> scenario.
>
> Thanks,
> Chris
>
>
>
>

Reply via email to