Remove html5_validators gem

Closes #367
This commit is contained in:
Artur Beljajev 2019-05-02 21:34:26 +03:00
parent ab9c5c45de
commit 450d208e43
12 changed files with 2 additions and 25 deletions

View file

@ -45,7 +45,6 @@ gem 'selectize-rails', '0.12.1' # include selectize.js for select
# view helpers
gem 'kaminari', '0.16.3' # pagination
gem 'coderay', '1.1.0' # xml console visualize
gem 'html5_validators', '1.2.2' # model requements now automatically on html form
gem 'select2-rails', '3.5.9.3' # for autocomplete
gem 'liquid', '3.0.6' # for email templates

View file

@ -205,7 +205,6 @@ GEM
haml (~> 4.0)
nokogiri (>= 1.6.0)
ruby_parser (~> 3.5)
html5_validators (1.2.2)
http-cookie (1.0.3)
domain_name (~> 0.5)
httpclient (2.8.3)
@ -467,7 +466,6 @@ DEPENDENCIES
grape
haml-rails (= 0.9.0)
html2haml (= 2.1.0)
html5_validators (= 1.2.2)
isikukood
iso8601 (= 0.8.6)
jbuilder (= 2.2.16)

View file

@ -2,8 +2,6 @@ module Billing
class Price < ActiveRecord::Base
include Concerns::Billing::Price::Expirable
self.auto_html5_validation = false
belongs_to :zone, class_name: 'DNS::Zone', required: true
has_many :account_activities

View file

@ -1,9 +0,0 @@
module DisableHtml5Validation
extend ActiveSupport::Concern
class_methods do
def auto_html5_validation
false
end
end
end

View file

@ -2,7 +2,6 @@ class Deposit
include ActiveModel::Validations
include ActiveModel::Conversion
extend ActiveModel::Naming
include DisableHtml5Validation
attr_accessor :description, :registrar, :registrar_id
attr_writer :amount

View file

@ -1,7 +1,6 @@
module Depp
class Contact
include ActiveModel::Model
include DisableHtml5Validation
attr_accessor :id, :name, :email, :phone, :org_name,
:ident, :ident_type, :ident_country_code,

View file

@ -2,7 +2,6 @@ module Depp
class Domain
include ActiveModel::Conversion
extend ActiveModel::Naming
include DisableHtml5Validation
attr_accessor :name, :current_user, :epp_xml

View file

@ -1,6 +1,5 @@
module Depp
class Keyrelay
include DisableHtml5Validation
attr_accessor :current_user, :epp_xml
def initialize(args = {})

View file

@ -3,7 +3,6 @@ module Depp
include ActiveModel::Validations
include ActiveModel::Conversion
extend ActiveModel::Naming
include DisableHtml5Validation
attr_accessor :tag, :password, :pki

View file

@ -1,7 +1,5 @@
module DNS
class Zone < ActiveRecord::Base
self.auto_html5_validation = false
validates :origin, :ttl, :refresh, :retry, :expire, :minimum_ttl, :email, :master_nameserver, presence: true
validates :ttl, :refresh, :retry, :expire, :minimum_ttl, numericality: { only_integer: true }
validates :origin, uniqueness: true

View file

@ -2,8 +2,7 @@
.form-signin.col-md-4.center-block.text-center
%h2.form-signin-heading.text-center= t '.header'
%hr
= form_for @user, url: registrant_mid_path, auto_html5_validation: false,
html: {class: 'form-signin'} do |f|
= form_for @user, url: registrant_mid_path, html: {class: 'form-signin'} do |f|
= f.text_field :phone, class: 'form-control',
placeholder: t(:phone_no), autocomplete: 'off', required: true
%button.btn.btn-lg.btn-primary.btn-block.js-login{:type => 'submit'}= t '.submit_btn'

View file

@ -2,8 +2,7 @@
.form-signin.col-md-4.center-block.text-center
%h2.form-signin-heading.text-center= t '.header'
%hr
= form_for @user, url: registrar_mid_path, auto_html5_validation: false,
html: {class: 'form-signin'} do |f|
= form_for @user, url: registrar_mid_path, html: {class: 'form-signin'} do |f|
= f.text_field :phone, class: 'form-control',
placeholder: t(:phone_no), autocomplete: 'off', required: true
%button.btn.btn-lg.btn-primary.btn-block.js-login{:type => 'submit'}= t '.submit_btn'