jackc / surus

PostgreSQL extensions for ActiveRecord

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NoMethodError: undefined method `all_json' for #<Class:0x007f7f8ddc3098>

JohanAlvarado opened this issue · comments

commented

Hi, I was working fine with the gem, but later , appear this error, and the other helpers has the same error.

helper used:

all_json
find_json

error:
NoMethodError: undefined method all_json' for #<Class:0x007f7f8ddc3098> from gems/activerecord-4.1.6/lib/active_record/dynamic_matchers.rb:26:inmethod_missing'

pg version = psql (9.3.5)
ruby version = 2.1.5
rails version = 4.1.6
surus version = surus (0.2.0)
activerecord (>= 3.1.0)

I put the gem into my Gemfile, and appear on my Gemfile.lock

Can you bundle update surus and try again. You are using surus 02.0 which predates the JSON feature.

commented

I ran bundle update surus, and this fix my issue, thank you