On Apr 1, 12:59 pm, Jeremy Evans <[email protected]> wrote:

> What happens when you do the following?:
>
>   require 'sequel'
>   require 'sequel/plugins/active_model'
>   Sequel::Model.plugin :active_model
>

irb(main):001:0> require 'sequel'
=> true
irb(main):002:0> require 'sequel/plugins/active_model'
LoadError: no such file to load -- active_model
        from /usr/local/lib/ruby/gems/1.9.1/gems/sequel-3.9.0/lib/
sequel/plugins/active_model.rb:1:in `require'
        from /usr/local/lib/ruby/gems/1.9.1/gems/sequel-3.9.0/lib/
sequel/plugins/active_model.rb:1:in `<top (required)>'
        from (irb):2:in `require'
        from (irb):2
        from /usr/local/bin/irb:12:in `<main>'

On Apr 1, 1:40 pm, mooman <[email protected]> wrote:
> I dont think it's the problem with requiring the "sequel/plugins/
> active_model.rb". It's the requiring of RAILS active_model
> (unfortunately has the same name, which generates a misleading error).
> first line of the plugin requires that.
>
> make sure you can load RAILS active_model in your environment first,
> then the plugin should work.
>
> -mooman

Looks like mooman has the answer.  Although, I'm not sure the correct
way to include the rails active_model that the plugin is requiring.


GregD




-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to