close #406; close #401 Do not load the PaperTrail::Version class in via a Rails::Engine when used with Rails; feature pushed to 3.1.0

This commit is contained in:
Ben Atkins 2014-08-29 18:34:30 -04:00
parent 6e883beb8c
commit 58b0bad32b
3 changed files with 1 additions and 8 deletions

View File

@ -10,8 +10,6 @@
- [#372](https://github.com/airblade/paper_trail/pull/372) - Use [Arel](https://github.com/rails/arel) for SQL construction.
- [#365](https://github.com/airblade/paper_trail/issues/365) - `VersionConcern#version_at` should return `nil` when receiving a timestamp
that occured after the object was destroyed.
- [#347](https://github.com/airblade/paper_trail/pull/347) - Autoload `ActiveRecord` models in via a `Rails::Engine` when
the gem is used with `Rails`.
- Expand `PaperTrail::VERSION` into a module, mimicking the form used by Rails to give it some additional modularity & versatility.
- Fixed `VersionConcern#index` instance method so that it conforms to using the primary key for ordering when possible.

View File

@ -126,10 +126,6 @@ end
# Require frameworks
require 'paper_trail/frameworks/sinatra'
if defined? Rails
require 'paper_trail/frameworks/rails'
else
require 'paper_trail/frameworks/active_record'
end
require 'paper_trail/frameworks/active_record'
require 'paper_trail/frameworks/rspec' if defined? RSpec
require 'paper_trail/frameworks/cucumber' if defined? World

View File

@ -1,5 +1,4 @@
require 'paper_trail/frameworks/rails/controller'
require 'paper_trail/frameworks/rails/engine'
module PaperTrail
module Rails