rostra 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
require 'client_side_validations/simple_form' if defined?(::SimpleForm)
|
|
4
|
-
require 'client_side_validations/formtastic' if defined?(::Formtastic)
|
|
5
|
-
|
|
6
|
-
# Uncomment the following block if you want each input field to have the validation messages attached.
|
|
7
|
-
# ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
|
|
8
|
-
# unless html_tag =~ /^<label/
|
|
9
|
-
# %{<div class="field_with_errors">#{html_tag}<label for="#{instance.send(:tag_id)}" class="message">#{instance.error_message.first}</label></div>}.html_safe
|
|
10
|
-
# else
|
|
11
|
-
# %{<div class="field_with_errors">#{html_tag}</div>}.html_safe
|
|
12
|
-
# end
|
|
13
|
-
# end
|
|
14
|
-
|
|
1
|
+
require 'client_side_validations/simple_form' if defined?(::SimpleForm)
|
data/lib/rostra/version.rb
CHANGED