Sha256: fee6219451e2853eac8dbb1b2c79a9f08b040e3baa57ed76cf2ba94f43a239e7
Contents?: true
Size: 607 Bytes
Versions: 12
Compression:
Stored size: 607 Bytes
Contents
# frozen_string_literal: true class Article < ActiveRecord::Base has_paper_trail( ignore: [ :title, { abstract: proc { |obj| ['ignore abstract', 'Other abstract'].include? obj.abstract } } ], only: [:content, { abstract: proc { |obj| obj.abstract.present? } }], skip: [:file_upload], meta: { answer: 42, action: :action_data_provider_method, question: proc { "31 + 11 = #{31 + 11}" }, article_id: proc { |article| article.id }, title: :title } ) def action_data_provider_method object_id.to_s end end
Version data entries
12 entries across 12 versions & 1 rubygems