Sha256: 28128084dd07f3f6855ecebb235980343f19d69c40d09c0debaf87eeceeb4be4

Contents?: true

Size: 310 Bytes

Versions: 7

Compression:

Stored size: 310 Bytes

Contents

if defined?(Rails)
  ActiveRecord::Base.extend Carter::ActiveRecord::Cartable if defined?(ActiveRecord)
  if Rails::VERSION::MAJOR == 3
    require 'carter/engine'
  else
    require 'carter/routing'
    ActionController::Routing::RouteSet::Mapper.send :include, Carter::Routing::MapperExtensions 
  end 
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
carter-0.7.2 lib/carter/rails/init.rb
carter-0.7.1 lib/carter/rails/init.rb
carter-0.7.0 lib/carter/rails/init.rb
carter-0.6.4 lib/carter/rails/init.rb
carter-0.6.3 lib/carter/rails/init.rb
carter-0.6.2 lib/carter/rails/init.rb
carter-0.6.1 lib/carter/rails/init.rb