11 lines
196 B
Ruby
11 lines
196 B
Ruby
class Annotation < ActiveRecord::Base
|
|
serialize :ranges, Array
|
|
|
|
belongs_to :legislation
|
|
belongs_to :user
|
|
|
|
def permissions
|
|
{ update: [user_id], delete: [user_id], admin: [] }
|
|
end
|
|
end
|