Module: Rails::API

Defined in:
lib/rails-api.rb,
lib/rails-api/version.rb,
lib/rails-api/public_exceptions.rb

Defined Under Namespace

Classes: PublicExceptions

Constant Summary collapse

VERSION =
'0.4.1'

Class Method Summary collapse

Class Method Details

.rails3?Boolean

Returns:

  • (Boolean)

8
9
10
# File 'lib/rails-api.rb', line 8

def self.rails3?
  Rails::VERSION::MAJOR == 3
end