Sha256: 79a9ca1fd00b1909f06d5d9550109fc00a0646be708cfd9f7b7a5ef2feaa58ea
Contents?: true
Size: 500 Bytes
Versions: 7
Compression:
Stored size: 500 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 } } def action_data_provider_method self.object_id.to_s end end
Version data entries
7 entries across 7 versions & 1 rubygems