{"action":"opened","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/2519","labels_url":"https://api.github.com/repos/jruby/jruby/issues/2519/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/2519/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/2519/events","html_url":"https://github.com/jruby/jruby/issues/2519","id":55498143,"number":2519,"title":"TypeError: bind argument must be an instance of #<Module:0x483af9f5>","user":{"login":"jcoyne","id":92044,"avatar_url":"https://avatars.githubusercontent.com/u/92044?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoyne","html_url":"https://github.com/jcoyne","followers_url":"https://api.github.com/users/jcoyne/followers","following_url":"https://api.github.com/users/jcoyne/following{/other_user}","gists_url":"https://api.github.com/users/jcoyne/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoyne/subscriptions","organizations_url":"https://api.github.com/users/jcoyne/orgs","repos_url":"https://api.github.com/users/jcoyne/repos","events_url":"https://api.github.com/users/jcoyne/events{/privacy}","received_events_url":"https://api.github.com/users/jcoyne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-26T15:50:31Z","updated_at":"2015-01-26T15:50:31Z","closed_at":null,"body":"Using: `jruby 1.7.18 (1.9.3p551) 2015-01-06 625381c on Java HotSpot(TM) 64-Bit Server VM 1.7.0_72-b14 +jit [linux-amd64]`\r\n\r\n```\r\nTypeError: bind argument must be an instance of #<Module:0x483af9f5>\r\n             define_method at org/jruby/RubyModule.java:1554\r\n   define_method_attribute at /home/travis/build/projecthydra/active_fedora/lib/active_fedora/attribute_methods/read.rb:54\r\n               module_eval at org/jruby/RubyModule.java:2337\r\n   define_method_attribute at /home/travis/build/projecthydra/active_fedora/lib/active_fedora/attribute_methods/read.rb:53\r\n   define_attribute_method at /home/travis/build/projecthydra/active_fedora/gemfiles/vendor/bundle/jruby/1.9/gems/activemodel-4.2.0/lib/active_model/attribute_methods.rb:292\r\n                      each at org/jruby/RubyArray.java:1613\r\n   define_attribute_method at /home/travis/build/projecthydra/active_fedora/gemfiles/vendor/bundle/jruby/1.9/gems/activemodel-4.2.0/lib/active_model/attribute_methods.rb:285\r\n  define_attribute_methods at /home/travis/build/projecthydra/active_fedora/gemfiles/vendor/bundle/jruby/1.9/gems/activemodel-4.2.0/lib/active_model/attribute_methods.rb:252\r\n                      each at org/jruby/RubyArray.java:1613\r\n  define_attribute_methods at /home/travis/build/projecthydra/active_fedora/gemfiles/vendor/bundle/jruby/1.9/gems/activemodel-4.2.0/lib/active_model/attribute_methods.rb:252\r\n           generate_method at /home/travis/build/projecthydra/active_fedora/lib/active_fedora/attribute_methods.rb:117\r\n               synchronize at org/jruby/ext/thread/Mutex.java:149\r\n            mu_synchronize at /home/travis/.rvm/rubies/jruby-1.7.18-d19/lib/ruby/1.9/mutex_m.rb:62\r\n           generate_method at /home/travis/build/projecthydra/active_fedora/lib/active_fedora/attribute_methods.rb:116\r\n                      File at /home/travis/build/projecthydra/active_fedora/lib/active_fedora/file.rb:9\r\n              ActiveFedora at /home/travis/build/projecthydra/active_fedora/lib/active_fedora/file.rb:4\r\n                    (root) at /home/travis/build/projecthydra/active_fedora/lib/active_fedora/file.rb:1\r\n                    (root) at /home/travis/build/projecthydra/active_fedora/lib/active_fedora/om_datastream.rb:1\r\n              ActiveFedora at \r\n/home/travis/build/projecthydra/active_fedora/lib/active_fedora/om_datastream.rb:4\r\n                    (root) at /home/travis/build/projecthydra/active_fedora/lib/active_fedora/om_datastream.rb:3\r\n                    (root) at /home/travis/build/projecthydra/active_fedora/spec/samples/hydra-mods_article_datastream.rb:1\r\n                   require at org/jruby/RubyKernel.java:1071\r\n          require_relative at file:/home/travis/.rvm/rubies/jruby-1.7.18-d19/lib/jruby.jar!/jruby/kernel19/kernel.rb:24\r\n                     Hydra at /home/travis/build/projecthydra/active_fedora/spec/samples/hydra-mods_article_datastream.rb:21\r\n                   require at org/jruby/RubyKernel.java:1071\r\n                    (root) at /home/travis/build/projecthydra/active_fedora/spec/samples/hydra-mods_article_datastream.rb:2\r\n                   require at org/jruby/RubyKernel.java:1071\r\n                    (root) at /home/travis/build/projecthydra/active_fedora/spec/samples/models/mods_article.rb:1\r\n                   require at org/jruby/RubyKernel.java:1071\r\n                    (root) at /home/travis/build/projecthydra/active_fedora/spec/samples/models/mods_article.rb:2\r\n                      load at org/jruby/RubyKernel.java:1087\r\n                    (root) at /home/travis/build/projecthydra/active_fedora/spec/samples/samples.rb:1\r\n                      each at org/jruby/RubyArray.java:1613\r\n                    (root) at /home/travis/build/projecthydra/active_fedora/spec/samples/samples.rb:2\r\n                    (root) at /home/travis/build/projecthydra/active_fedora/spec/spec_helper.rb:1\r\n                    (root) at /home/travis/build/projecthydra/active_fedora/spec/spec_helper.rb:30\r\n                    (root) at /home/travis/build/projecthydra/active_fedora/spec/integration/associations_spec.rb:1\r\n                    (root) at /home/travis/build/projecthydra/active_fedora/spec/integration/associations_spec.rb:1\r\n```"}}