Class: RPH::FormAssistant::Rules

Inherits:
Object
  • Object
show all
Defined in:
lib/form_assistant/rules.rb

Overview

used to assist generic logic throughout FormAssistant

Class Method Summary collapse

Class Method Details

.binding_required?Boolean

used mainly for #concat() so that this plugin will work with versions of Rails other than edge

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


12
13
14
# File 'lib/form_assistant/rules.rb', line 12

def self.has_I18n_support?
  !!( Rails.version > '2.2.0' )
end