Files
nairobi/app/models/annotation.rb
Amaia Castro 9a9f1da5a0 Renames Legislation model to LegacyLegislation
Renames the model and related stuff from Legislation 
to LegacyLegislation to avoid name clashes with 
the future Legislation module.
2016-11-30 12:00:05 +01:00

11 lines
203 B
Ruby

class Annotation < ActiveRecord::Base
serialize :ranges, Array
belongs_to :legacy_legislation
belongs_to :user
def permissions
{ update: [user_id], delete: [user_id], admin: [] }
end
end