Skip to content

Commit

Permalink
removing deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco Sellitto committed Mar 31, 2014
1 parent ce99fab commit d3e74d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Expand Up @@ -67,7 +67,7 @@ def start_screen(path = nil)

has_and_belongs_to_many :groups do #tmp#2#, :finder_sql => 'SELECT * FROM `groups` INNER JOIN `groups_users` ON `groups`.id = `groups_users`.group_id OR groups.inventory_pool_id IS NULL WHERE (`groups_users`.user_id = #{id})'
def with_general
all + [Group::GENERAL_GROUP_ID]
to_a + [Group::GENERAL_GROUP_ID]
end
end

Expand Down

0 comments on commit d3e74d5

Please sign in to comment.