Class: RPH::FormAssistant::Rules
- Inherits:
-
Object
- Object
- RPH::FormAssistant::Rules
- Defined in:
- lib/form_assistant/rules.rb
Overview
used to assist generic logic throughout FormAssistant
Class Method Summary collapse
-
.binding_required? ⇒ Boolean
used mainly for #concat() so that this plugin will work with versions of Rails other than edge.
- .has_I18n_support? ⇒ Boolean
Class Method Details
.binding_required? ⇒ Boolean
used mainly for #concat() so that this plugin will work with versions of Rails other than edge
8 9 10 |
# File 'lib/form_assistant/rules.rb', line 8 def self.binding_required? !!( Rails.version < '2.2.0' ) end |
.has_I18n_support? ⇒ Boolean
12 13 14 |
# File 'lib/form_assistant/rules.rb', line 12 def self.has_I18n_support? !!( Rails.version > '2.2.0' ) end |