Files

Markaby::Rails

Constants

UNSUPPORTED_RAILS_VERSIONS
DEPRECATED_RAILS_VERSIONS
FULLY_SUPPORTED_RAILS_VERSIONS
SUPPORTED_RAILS_VERSIONS

Public Class Methods

check_rails_version() click to toggle source
    # File lib/markaby/rails.rb, line 58
58:       def check_rails_version
59:         if UNSUPPORTED_RAILS_VERSIONS.include?(detected_rails_version)
60:           error_message = "Cannot load markaby under rails version #{detected_rails_version}.  "
61:           error_message << "See Markaby::Rails::SUPPORTED_RAILS_VERSIONS for exactly that, or redefine this constant."
62:           raise LoadError, error_message
63:         end
64:       end
deprecated_rails_version?() click to toggle source
    # File lib/markaby/rails.rb, line 54
54:       def deprecated_rails_version?
55:         DEPRECATED_RAILS_VERSIONS.include?(detected_rails_version)
56:       end
load() click to toggle source
    # File lib/markaby/rails.rb, line 44
44:       def load
45:         check_rails_version
46: 
47:         if deprecated_rails_version?
48:           require File.dirname(__FILE__) + "/rails/deprecated"
49:         else
50:           require File.dirname(__FILE__) + "/rails/current"
51:         end
52:       end

Private Class Methods

detected_rails_version() click to toggle source
    # File lib/markaby/rails.rb, line 68
68:       def detected_rails_version
69:         if defined?(::Rails)
70:           ::Rails::VERSION::STRING
71:         end
72:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.