rostra 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -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