Sha256: 76b63c4bf75b57fff1174e89795187e9df394074f7479d2611a51779de16d469

Contents?: true

Size: 240 Bytes

Versions: 1

Compression:

Stored size: 240 Bytes

Contents

module OauthService
  class Url < ActiveRecord::Base
    has_many :users_url

    def self.by_user(user_id)
      includes(users_url: [user_group: [[users_group: :user]]]).where(:users_groups => {:user_id => user_id}).all
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oauth_service-0.0.2 app/models/oauth_service/url.rb