Sha256: 811f69f1d5d2cb03f0341d09c47814665171247163321dfd4d0f84f23e351340

Contents?: true

Size: 325 Bytes

Versions: 10

Compression:

Stored size: 325 Bytes

Contents

module Arpa
  module Validators
    class ActionValidator
      include ActiveModel::Validations

      attr_reader :name, :resource_id

      validates :name, :resource_id, presence: true

      def initialize(action)
        @name        = action.name
        @resource_id = action.resource_id
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
arpa-0.2.0 lib/arpa/validators/action_validator.rb
arpa-0.1.0 lib/arpa/validators/action_validator.rb
arpa-0.0.9 lib/arpa/validators/action_validator.rb
arpa-0.0.8 lib/arpa/validators/action_validator.rb
arpa-0.0.7 lib/arpa/validators/action_validator.rb
arpa-0.0.6 lib/arpa/validators/action_validator.rb
arpa-0.0.5 lib/arpa/validators/action_validator.rb
arpa-0.0.4 lib/arpa/validators/action_validator.rb
arpa-0.0.3 lib/arpa/validators/action_validator.rb
arpa-0.0.2 lib/arpa/validators/action_validator.rb