app/models/oauth_service/url.rb in oauth_service-0.0.1 vs app/models/oauth_service/url.rb in oauth_service-0.0.2

- old
+ new

@@ -1,9 +1,9 @@ module OauthService class Url < ActiveRecord::Base has_many :users_url def self.by_user(user_id) - includes(users_url: [users_group: [:user]]).where(:users_groups => {:user_id => user_id}).all + includes(users_url: [user_group: [[users_group: :user]]]).where(:users_groups => {:user_id => user_id}).all end end end