Module: Rails

Defined in:
lib/mark_facets/rails/rails.rb

Class Method Summary collapse

Class Method Details

.v2?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/mark_facets/rails/rails.rb', line 9

def v2?
  Rails.version.match(/^2\./)
end

.v3?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/mark_facets/rails/rails.rb', line 5

def v3?
  Rails.version.match(/^3\./)
end