Add owner concern

I'm not 100% sure about this implementation, but it address support for disabling users and resources they own without deleting them. 
Actually this is totally the wrong branch I made a PR for.
On Jun 9, 2014 2:42 AM, "Cam Allen" <notifications@github.com> wrote:

> In app/models/concerns/owner.rb:
>
> > @@ -0,0 +1,17 @@
> > +module Owner
> > +  extend ActiveSupport::Concern
> > +
> > +  module ClassMethods
> > +    def owns(*owned)
> > +      owned.each do |properties_type|
> > +        if properties_type.length == 2
> > +          properties_type, attributes = properties_type
> > +          attributes[:as] = :owner
> > +          has_many properties_type, **attributes
>
> Did you want the splat operator * instead?
>
> ** is failing on jruby 1.9 mode
> <https://travis-ci.org/zooniverse/Panoptes/jobs/27086096> with
>
> SyntaxError: /home/travis/build/zooniverse/Panoptes/app/models/concerns/owner.rb:10: syntax error, unexpected tPOW
>           has_many properties_type, **attributes
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/zooniverse/Panoptes/pull/41/files#r13531529>.
>