config/initializers/formtastic.rb in koalagator-2.0.0 vs config/initializers/formtastic.rb in koalagator-2.1.0
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-require 'formtastic'
+require "formtastic"
# --------------------------------------------------------------------------------------------------
# Please note: If you're subclassing Formtastic::FormBuilder, Formtastic uses
# class_attribute for these configuration attributes instead of the deprecated
# class_inheritable_attribute. The behaviour is slightly different with subclasses (especially
# around attributes with Hash or Array) values, so make sure you understand what's happening.
@@ -29,11 +29,11 @@
# Set the string that will be appended to the labels/fieldsets which are required
# It accepts string or procs and the default is a localized version of
# '<abbr title="required">*</abbr>'. In other words, if you configure formtastic.required
# in your locale, it will replace the abbr title properly. But if you don't want to use
# abbr tag, you can simply give a string as below
-Formtastic::FormBuilder.required_string = proc { %{<abbr title="#{Formtastic::I18n.t(:required)}" aria-hidden="true">*</abbr>}.html_safe }
+Formtastic::FormBuilder.required_string = proc { %(<abbr title="#{Formtastic::I18n.t(:required)}" aria-hidden="true">*</abbr>).html_safe }
# Set the string that will be appended to the labels/fieldsets which are optional
# Defaults to an empty string ("") and also accepts procs (see required_string above)
# Formtastic::FormBuilder.optional_string = "(optional)"
@@ -91,6 +91,6 @@
# You can opt-in to Formtastic's use of the HTML5 `required` attribute on `<input>`, `<select>`
# and `<textarea>` tags by setting this to true (defaults to false).
Formtastic::FormBuilder.use_required_attribute = true
-require 'formtastic/version'
+require "formtastic/version"