Ruby on Rails Tuesday, September 29, 2015

On 29 September 2015 at 07:02, Frederick Cheung
<frederick.cheung@gmail.com> wrote:
> On Monday, September 28, 2015 at 10:01:22 PM UTC+1, Colin Law wrote:
>>
>> Any suggestions as to why I have to explicitly include gon in the
>> application's Gemfile, when it is included anyway via the dependency
>> in my gem?
>>
>
> Bundler's autorequire feature only requires gems listed in the Gemfile, not their dependencies. You could either require gon from within your gem, when it is required (this may or may not be appropriate ) or require it from your app.

Thanks all, that was the point I had missed, that bundler ensures all
the gems are available but only those explicitly included in Gemfile
are automatically loaded. I required gon in the gem and now all is
well.

Thanks

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv8Y4ZTm3WsDZL0Bpg5%3DdVf%2B-0hP8VUkP%3D%2BJ9ntE2%3DoFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment