mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 18:21:04 +08:00
17 lines
337 B
Ruby
17 lines
337 B
Ruby
|
module Views
|
||
|
module Datatables
|
||
|
class DatatablesTeam < ApplicationRecord
|
||
|
belongs_to :user
|
||
|
default_scope { order(name: :asc) }
|
||
|
|
||
|
private
|
||
|
|
||
|
# this isn't strictly necessary, but it will prevent
|
||
|
# rails from calling save, which would fail anyway.
|
||
|
def readonly?
|
||
|
true
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|