Renames the model and related stuff from Legislation to LegacyLegislation to avoid name clashes with the future Legislation module.
11 lines
203 B
Ruby
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
|