We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afc21aa commit b91351eCopy full SHA for b91351e
lib/fat_free_crm/permissions.rb
@@ -42,7 +42,8 @@ def uses_user_permissions
42
# :order => primary key descending
43
# :limit => none
44
#
45
- scope :my, lambda { |options = {}|
+ scope :my, lambda { |*args|
46
+ options = args[0] || {}
47
includes(:permissions).
48
where("#{quoted_table_name}.user_id = :user OR " <<
49
"#{quoted_table_name}.assigned_to = :user OR " <<
0 commit comments