Sha256: 81cd5d5c380c9c6b68cde52270caf1e4a58795ad580361181b5edededfa5408f

Contents?: true

Size: 311 Bytes

Versions: 4

Compression:

Stored size: 311 Bytes

Contents

module Enlightenment
  module Validations
    module CallbackValidator
      extend ActiveSupport::Concern

      module ClassMethods
        def callback_validator(params = {})
          { :remote => "/validations?model=#{params[:model].to_s}&field=#{params[:field]}" }
        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/callback_validator.rb
enlightenment-0.0.1.pre.3 lib/enlightenment/validations/callback_validator.rb
enlightenment-0.0.1.pre.2 lib/enlightenment/validations/callback_validator.rb
enlightenment-0.0.1.pre.1 lib/enlightenment/validations/callback_validator.rb