Sha256: f145ba97e20e2ad9a7cb1811813303ddcca52a95d626849f4352a4a356cc9d3f

Contents?: true

Size: 376 Bytes

Versions: 9

Compression:

Stored size: 376 Bytes

Contents

require 'selectable_attr_rails/validatable'

module SelectableAttrRails
  module Validatable
    module Enum
      def validates_format_options
        @validates_format_options
      end
      def validates_format(options = nil)
        return @validates_format_options = nil if options == false
        @validates_format_options = options || {}
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
selectable_attr_rails-0.3.15 lib/selectable_attr_rails/validatable/enum.rb
selectable_attr_rails-0.3.14 lib/selectable_attr_rails/validatable/enum.rb
selectable_attr_rails-0.3.13 lib/selectable_attr_rails/validatable/enum.rb
selectable_attr_rails-0.3.12 lib/selectable_attr_rails/validatable/enum.rb
selectable_attr_rails-0.3.11 lib/selectable_attr_rails/validatable/enum.rb
selectable_attr_rails-0.3.10 lib/selectable_attr_rails/validatable/enum.rb
selectable_attr_rails-0.3.9 lib/selectable_attr_rails/validatable/enum.rb
selectable_attr_rails-0.3.8 lib/selectable_attr_rails/validatable/enum.rb
selectable_attr_rails-0.3.7 lib/selectable_attr_rails/validatable/enum.rb