songkick/oauth2-provider

View on GitHub
lib/songkick/oauth2/model/client_owner.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Songkick
  module OAuth2
    module Model

      module ClientOwner
        def self.included(klass)
          klass.has_many :oauth2_clients,
                         :class_name => 'Songkick::OAuth2::Model::Client',
                         :as => :oauth2_client_owner
        end
      end

    end
  end
end