sortable icon indicating copy to clipboard operation
sortable copied to clipboard

Needs to be explicitly required

Open gsomoza opened this issue 10 years ago • 1 comments

Just installed this as a gem using bundler, as follows:

source 'http://gems.github.com'
gem 'shuber-sortable'

But that wasn't enough to have the "sortable" method available in my models. I had to add an initializer with the line require 'sortable' for this to work.

Am I missing something? The gem "source" installed by bundler doesn't seem to have any init.rb file that would do the require automatically.

gsomoza avatar Jun 23 '14 21:06 gsomoza

In your Gemfile, try

gem 'shuber-sortable', require: 'sortable'

shuber avatar Jun 23 '14 21:06 shuber