spec/fixtures/customer_policy.rb in tram-policy-0.1.1 vs spec/fixtures/customer_policy.rb in tram-policy-0.2.0

- old
+ new

@@ -1,12 +1,5 @@ class Test::CustomerPolicy < Tram::Policy option :name - validate :name_presence - - private - - def name_presence - return if name - errors.add :name_presence, field: "name" - end + validate { errors.add :name_presence, field: "name" unless name } end