Class: Rails::Angulate::Mappers::ValidatorMapper

Inherits:
BaseMapper
  • Object
show all
Defined in:
lib/rails/angulate/mappers/validator_mapper.rb

Instance Attribute Summary

Attributes inherited from BaseMapper

#attribute, #model, #validator

Instance Method Summary collapse

Methods inherited from BaseMapper

#error_messages, #full_message, inherited, #initialize

Constructor Details

This class inherits a constructor from Rails::Angulate::Mappers::BaseMapper

Instance Method Details

#ng_attributesObject



5
6
7
8
9
# File 'lib/rails/angulate/mappers/validator_mapper.rb', line 5

def ng_attributes
  {
    "ng-#{mapped_kind}" => true
  }
end