プロジェクト

全般

プロフィール

« | » 

リビジョン fe492e04

高徹 高橋 徹 さんが約6年前に追加

[phase-11]add attachable, but have permission problem

差分を表示:

app/models/glossary_term.rb
belongs_to :category, class_name: 'GlossaryCategory', foreign_key: 'category_id'
belongs_to :project
# class method from Redmine::Acts::Attachable::ClassMethods
acts_as_attachable
scope :search_by_name, -> (keyword) {
where 'name like ?', "#{sanitize_sql_like(keyword)}%"
}

他の形式にエクスポート: Unified diff