Show More
Commit Description:
change to encrypted cookies
Commit Description:
change to encrypted cookies
File last commit:
Show/Diff file:
Action:
app/models/problem_tag.rb | 8 lines | 273 B | text/x-ruby | RubyLexer |
class ProblemTag < ActiveRecord::Base
self.table_name = 'problems_tags'
belongs_to :problem
belongs_to :tag
validates_uniqueness_of :problem_id, scope: :tag_id, message: ->(object, data) { "'#{Problem.find(data[:value]).full_name}' is already has this tag" }
end