File: active_record.rb

package info (click to toggle)
ruby-client-side-validations 23.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 272 kB
  • sloc: ruby: 788; javascript: 671; makefile: 2
file content (7 lines) | stat: -rw-r--r-- 233 bytes parent folder | download
1
2
3
4
5
6
7
# frozen_string_literal: true

require_relative 'active_model'

ActiveSupport.on_load(:active_record) { include ClientSideValidations::ActiveModel::Validations }

ClientSideValidations::Extender.extend 'ActiveRecord', %w[Uniqueness]