Remove #setup method, which is deprecated in Rails 4.
Moved "setup deprecated" conditional into a constant.
Check ActiveModel's version instead of ActiveRecord.
Merge pull request #1 from johncarney/remove-deprecated-setup-method

Remove deprecated #setup method, which is deprecated in Rails 4.1.