This new Legislation::Proposal model inherits from the original Proposal, as it will behave in a very similar way.
9 lines
252 B
Ruby
9 lines
252 B
Ruby
class Legislation::Proposal < Proposal
|
|
acts_as_paranoid column: :hidden_at
|
|
include ActsAsParanoidAliases
|
|
|
|
belongs_to :process, class_name: 'Legislation::Process', foreign_key: 'legislation_process_id'
|
|
|
|
scope :sorted, -> { order('id ASC') }
|
|
end
|