#This mock model can be used to test how the plugin #works in a real AR class. It requires that the plugin #is tested in the context of a host app. #http://www.bigbold.com/snippets/posts/show/767 class ActiveRecord::Base def self.columns; @columns ||= []; end def self.column(name, sql_type = nil, default = nil, null = true) columns << ActiveRecord::ConnectionAdapters::Column.new(name.to_s, default, sql_type, null) end end class MockModel < ActiveRecord::Base column :name, :string column :age, :integer column :color, :string acts_as_monkey end