Sha256: afc6547653e2ed0f77adb6e6268e5924aaf895544cf36aa1e199daed1d8f9f6e

Contents?: true

Size: 130 Bytes

Versions: 6

Compression:

Stored size: 130 Bytes

Contents

class Test::CustomerPolicy < Tram::Policy
  option :name

  validate { errors.add :name_presence, field: "name" unless name }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tram-policy-0.2.5 spec/fixtures/customer_policy.rb
tram-policy-0.2.4 spec/fixtures/customer_policy.rb
tram-policy-0.2.3 spec/fixtures/customer_policy.rb
tram-policy-0.2.2 spec/fixtures/customer_policy.rb
tram-policy-0.2.1 spec/fixtures/customer_policy.rb
tram-policy-0.2.0 spec/fixtures/customer_policy.rb