Always return true when assigning coerced values
Fixing typo
Merge pull request #10 from lucasas/master

Fixing typo
Type coercer accepts custom classes

Example:

  class FullName
    def initialize(*names)
      @names = names
    end

    def to_s
      @names.join ' '
    end
  end

  class UserValidator
    include Lotus::Validations

    attribute :full_name, type: FullName
  end

  validator = UserValidator.new(full_name: ['Luca', 'Guidi'])
  validator.valid? # trigger coercions

  puts validator.full_name.class # => FullName
  puts validator.full_name       # => "Luca Guidi"
Merge pull request #14 from lotus/custom-coercions

Type coercer accepts custom classes
Attribute is invalid if its presence is required and it's blank. Closes #8 #9
Merge branch 'boolean-coercion-bug' of https://github.com/viking/validators into viking-boolean-coercion-bug

Conflicts:
	test/fixtures.rb
	test/type_test.rb