Sha256: b358aac0cbc438ab2334a66cf59c9cede9bbdb74a1d980424114988b9d04a854
Contents?: true
Size: 605 Bytes
Versions: 6
Compression:
Stored size: 605 Bytes
Contents
class Article < ActiveRecord::Base has_paper_trail :ignore => :title, :only => [:content], :skip => [:file_upload], :meta => { :answer => 42, :action => :action_data_provider_method, :question => Proc.new { "31 + 11 = #{31 + 11}" }, :article_id => Proc.new { |article| article.id }, :title => :title } def action_data_provider_method self.object_id.to_s end end
Version data entries
6 entries across 6 versions & 2 rubygems