Sha256: ab985c0a8be384d141ec25d593a45b7cd039f82cd6cfe9c687801471ce3fae7d

Contents?: true

Size: 459 Bytes

Versions: 2

Compression:

Stored size: 459 Bytes

Contents

require 'active_model/validators/encodable_validator'
require 'active_support/i18n'

# EncodableValidator
#
# @example
#   validates :username, :encodable => { :encodings => [Encoding::ISO_2022_JP, Encoding::Shift_JIS] }
#   or
#   validates_encodable_of :username, :encodings => [Encoding::ISO_2022_JP, Encoding::Shift_JIS]
module EncodableValidator
end

I18n.load_path += Dir[File.expand_path(File.join(File.dirname(__FILE__), '../locales', '*.yml')).to_s]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
encodable_validator-0.2.0 lib/encodable_validator.rb
encodable_validator-0.1.0 lib/encodable_validator.rb