Skip to content

Commit eb9fcb8

Browse files
committed
empty, not nil, to address issue #60
1 parent 11b7a93 commit eb9fcb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/closure_tree/support_flags.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module SupportFlags
44
def use_attr_accessible?
55
defined?(ActiveModel::MassAssignmentSecurity) &&
66
model_class.respond_to?(:accessible_attributes) &&
7-
! model_class.accessible_attributes.nil?
7+
! model_class.accessible_attributes.empty?
88
end
99

1010
def include_forbidden_attributes_protection?

0 commit comments

Comments
 (0)