I\'m trying to use ActiveModel instead of ActiveRecord for my models because I do not want my models to have anything to do with the database.
Below is my model:
<
Looks like you should have instead investigated the (not very well documented) ActiveModel::Conversions class
https://github.com/rails/rails/blob/3-1-stable/activemodel/lib/active_model/conversion.rb
include ActiveModel::Conversion
def persisted?
false
end
would have done the trick, same applies to Rails 4.2