Added Proposal model to Legislation

This new Legislation::Proposal model inherits from the original Proposal, as it will behave in a very similar way.
This commit is contained in:
María Checa
2017-09-13 15:43:36 +02:00
parent dc9fe973f4
commit f521a9023b
4 changed files with 19 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
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