Sha256: 47c98a1a652b084ecd6463a597c9e452e18774b8ee331d213e5c4654c428bdce
Contents?: true
Size: 765 Bytes
Versions: 19
Compression:
Stored size: 765 Bytes
Contents
class Article < ActiveRecord::Base has_paper_trail :ignore => [:title, { :abstract => Proc.new { |obj| ['ignore abstract', 'Other abstract'].include? obj.abstract } } ], :only => [:content, { :abstract => Proc.new { |obj| obj.abstract.present? } } ], :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
19 entries across 19 versions & 1 rubygems