lib/rom/sql/index.rb in rom-sql-2.0.0.beta2 vs lib/rom/sql/index.rb in rom-sql-2.0.0.beta3

- old
+ new

@@ -22,8 +22,12 @@ end def partial? !predicate.nil? end + + def can_access?(attribute) + !partial? && attributes[0].name == attribute.name + end end end end