codebrew / backbone-rails

Easily use backbone.js with rails 3.1
MIT License
1.61k stars 255 forks source link

Upgrade underscore.js to 1.4.4 #156

Closed mikeatlas closed 10 years ago

mikeatlas commented 11 years ago

I am using rails-backbone-0.9.10 in conjunction with backbone-relational-rails-0.8.0. The latter requires underscore-1.4.4 as it calls the new _.findWhere function.

I realize this is not directly backbone-rails' problem to fix, but I can't directly pull in the underscore-1.4.4 gem without rails-backbone-0.9.10 version's copy of underscore.js 1.4.3 being pulled into my asset pipeline first, it seems, thus ignoring the newer underscore gem.

Perhaps instead you could add the underscore gem as dependency to your gemspec?

s.add_dependency('underscore-rails', '~> 1.4.4')
manusajith commented 10 years ago

fixed in master branch now