We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 222270e commit 0c6711dCopy full SHA for 0c6711d
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 { |options|
46
+ options = {} unless options
47
includes(:permissions).
48
where("#{quoted_table_name}.user_id = :user OR " <<
49
"#{quoted_table_name}.assigned_to = :user OR " <<
0 commit comments