{"action":"created","issue":{"url":"https://api.github.com/repos/cequel/cequel/issues/193","labels_url":"https://api.github.com/repos/cequel/cequel/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/cequel/cequel/issues/193/comments","events_url":"https://api.github.com/repos/cequel/cequel/issues/193/events","html_url":"https://github.com/cequel/cequel/issues/193","id":49295869,"number":193,"title":"Error running with Rails 4.2.0beta4","user":{"login":"zshenker","id":4691929,"avatar_url":"https://avatars.githubusercontent.com/u/4691929?v=3","gravatar_id":"","url":"https://api.github.com/users/zshenker","html_url":"https://github.com/zshenker","followers_url":"https://api.github.com/users/zshenker/followers","following_url":"https://api.github.com/users/zshenker/following{/other_user}","gists_url":"https://api.github.com/users/zshenker/gists{/gist_id}","starred_url":"https://api.github.com/users/zshenker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zshenker/subscriptions","organizations_url":"https://api.github.com/users/zshenker/orgs","repos_url":"https://api.github.com/users/zshenker/repos","events_url":"https://api.github.com/users/zshenker/events{/privacy}","received_events_url":"https://api.github.com/users/zshenker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-11-18T21:29:55Z","updated_at":"2015-01-21T12:49:54Z","closed_at":null,"body":"I receive the following error when trying to use cequel with Rails 4.2.0beta4:\r\n\r\n/usr/local/lib/ruby/2.1.0/forwardable.rb:132:in `instance_delegate': wrong number of arguments (2 for 1) (ArgumentError)\r\n\tfrom /usr/local/bundle/gems/activemodel-4.2.0.beta4/lib/active_model/naming.rb:219:in `extended'\r\n\tfrom /usr/local/bundle/gems/activemodel-4.2.0.beta4/lib/active_model/validations.rb:42:in `extend'\r\n\tfrom /usr/local/bundle/gems/activemodel-4.2.0.beta4/lib/active_model/validations.rb:42:in `block in <module:Validations>'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/concern.rb:120:in `class_eval'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/concern.rb:120:in `append_features'\r\n\tfrom /usr/local/bundle/gems/cequel-1.4.5/lib/cequel/record/validations.rb:27:in `include'\r\n\tfrom /usr/local/bundle/gems/cequel-1.4.5/lib/cequel/record/validations.rb:27:in `block in <module:Validations>'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/concern.rb:120:in `class_eval'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/concern.rb:120:in `append_features'\r\n\tfrom /usr/local/bundle/gems/cequel-1.4.5/lib/cequel/record.rb:92:in `include'\r\n\tfrom /usr/local/bundle/gems/cequel-1.4.5/lib/cequel/record.rb:92:in `block in <module:Record>'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/concern.rb:120:in `class_eval'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/concern.rb:120:in `append_features'\r\n\tfrom /usr/src/app/app/models/asset.rb:3:in `include'\r\n\tfrom /usr/src/app/app/models/asset.rb:3:in `<class:Asset>'\r\n\tfrom /usr/src/app/app/models/asset.rb:1:in `<top (required)>'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/dependencies.rb:452:in `load'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/dependencies.rb:452:in `block in load_file'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/dependencies.rb:642:in `new_constants_in'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/dependencies.rb:451:in `load_file'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/dependencies.rb:349:in `require_or_load'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/dependencies.rb:489:in `load_missing_constant'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/dependencies.rb:184:in `const_missing'\r\n\tfrom /usr/src/app/spec/factories.rb:10:in `block in <top (required)>'\r\n\tfrom /usr/local/bundle/gems/factory_girl-4.5.0/lib/factory_girl/syntax/default.rb:49:in `instance_eval'\r\n\tfrom /usr/local/bundle/gems/factory_girl-4.5.0/lib/factory_girl/syntax/default.rb:49:in `run'\r\n\tfrom /usr/local/bundle/gems/factory_girl-4.5.0/lib/factory_girl/syntax/default.rb:7:in `define'\r\n\tfrom /usr/src/app/spec/factories.rb:1:in `<top (required)>'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/dependencies.rb:246:in `load'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/dependencies.rb:246:in `block in load'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/dependencies.rb:237:in `load_dependency'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/dependencies.rb:246:in `load'\r\n\tfrom /usr/local/bundle/gems/factory_girl-4.5.0/lib/factory_girl/find_definitions.rb:16:in `block in find_definitions'\r\n\tfrom /usr/local/bundle/gems/factory_girl-4.5.0/lib/factory_girl/find_definitions.rb:15:in `each'\r\n\tfrom /usr/local/bundle/gems/factory_girl-4.5.0/lib/factory_girl/find_definitions.rb:15:in `find_definitions'\r\n\tfrom /usr/local/bundle/gems/factory_girl_rails-4.5.0/lib/factory_girl_rails/railtie.rb:21:in `block in <class:Railtie>'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/lazy_load_hooks.rb:36:in `call'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/lazy_load_hooks.rb:44:in `each'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks'\r\n\tfrom /usr/local/bundle/gems/railties-4.2.0.beta4/lib/rails/application/finisher.rb:62:in `block in <module:Finisher>'\r\n\tfrom /usr/local/bundle/gems/railties-4.2.0.beta4/lib/rails/initializable.rb:30:in `instance_exec'\r\n\tfrom /usr/local/bundle/gems/railties-4.2.0.beta4/lib/rails/initializable.rb:30:in `run'\r\n\tfrom /usr/local/bundle/gems/railties-4.2.0.beta4/lib/rails/initializable.rb:55:in `block in run_initializers'\r\n\tfrom /usr/local/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'\r\n\tfrom /usr/local/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'\r\n\tfrom /usr/local/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'\r\n\tfrom /usr/local/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'\r\n\tfrom /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each'\r\n\tfrom /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `call'\r\n\tfrom /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'\r\n\tfrom /usr/local/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'\r\n\tfrom /usr/local/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'\r\n\tfrom /usr/local/bundle/gems/railties-4.2.0.beta4/lib/rails/initializable.rb:54:in `run_initializers'\r\n\tfrom /usr/local/bundle/gems/railties-4.2.0.beta4/lib/rails/application.rb:349:in `initialize!'\r\n\tfrom /usr/src/app/config/environment.rb:5:in `<top (required)>'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/dependencies.rb:252:in `require'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/dependencies.rb:252:in `block in require'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/dependencies.rb:237:in `load_dependency'\r\n\tfrom /usr/local/bundle/gems/activesupport-4.2.0.beta4/lib/active_support/dependencies.rb:252:in `require'\r\n\tfrom /usr/local/bundle/gems/spring-1.1.3/lib/spring/application.rb:92:in `preload'\r\n\tfrom /usr/local/bundle/gems/spring-1.1.3/lib/spring/application.rb:140:in `serve'\r\n\tfrom /usr/local/bundle/gems/spring-1.1.3/lib/spring/application.rb:128:in `block in run'\r\n\tfrom /usr/local/bundle/gems/spring-1.1.3/lib/spring/application.rb:122:in `loop'\r\n\tfrom /usr/local/bundle/gems/spring-1.1.3/lib/spring/application.rb:122:in `run'\r\n\tfrom /usr/local/bundle/gems/spring-1.1.3/lib/spring/application/boot.rb:18:in `<top (required)>'\r\n\tfrom /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'\r\n\tfrom /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'\r\n\tfrom -e:1:in `<main>'"},"comment":{"url":"https://api.github.com/repos/cequel/cequel/issues/comments/70830977","html_url":"https://github.com/cequel/cequel/issues/193#issuecomment-70830977","issue_url":"https://api.github.com/repos/cequel/cequel/issues/193","id":70830977,"user":{"login":"Sixeight","id":9955,"avatar_url":"https://avatars.githubusercontent.com/u/9955?v=3","gravatar_id":"","url":"https://api.github.com/users/Sixeight","html_url":"https://github.com/Sixeight","followers_url":"https://api.github.com/users/Sixeight/followers","following_url":"https://api.github.com/users/Sixeight/following{/other_user}","gists_url":"https://api.github.com/users/Sixeight/gists{/gist_id}","starred_url":"https://api.github.com/users/Sixeight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sixeight/subscriptions","organizations_url":"https://api.github.com/users/Sixeight/orgs","repos_url":"https://api.github.com/users/Sixeight/repos","events_url":"https://api.github.com/users/Sixeight/events{/privacy}","received_events_url":"https://api.github.com/users/Sixeight/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T12:49:54Z","updated_at":"2015-01-21T12:49:54Z","body":"@olance wow, sounds like a lot of bother :scream_cat: \r\nI created PR with tiny hack around `delegate`. Try this hack for your project."}}