Sha256: 9d3a2c18b1145c1d8c5f6d24e173fba5fe54b66f2debf946c4ecfb062bcca56a

Contents?: true

Size: 314 Bytes

Versions: 4

Compression:

Stored size: 314 Bytes

Contents

module Enlightenment
  module Validations
    module ValidatesAssociated
      extend ActiveSupport::Concern

      module ClassMethods
        def associated_validator(params = {})
          field = params[:field].to_s.singularize
          { :associated => field.to_sym }
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enlightenment-0.0.1.pre.4 lib/enlightenment/validations/validates_associated.rb
enlightenment-0.0.1.pre.3 lib/enlightenment/validations/validates_associated.rb
enlightenment-0.0.1.pre.2 lib/enlightenment/validations/validates_associated.rb
enlightenment-0.0.1.pre.1 lib/enlightenment/validations/validates_associated.rb