Skip to content

Commit

Permalink
empty, not nil, to address issue #60
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Jun 15, 2014
1 parent 11b7a93 commit eb9fcb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/closure_tree/support_flags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module SupportFlags
def use_attr_accessible?
defined?(ActiveModel::MassAssignmentSecurity) &&
model_class.respond_to?(:accessible_attributes) &&
! model_class.accessible_attributes.nil?
! model_class.accessible_attributes.empty?
end

def include_forbidden_attributes_protection?
Expand Down

0 comments on commit eb9fcb8

Please sign in to comment.