Module: TaggableQueries
- Extended by:
- ActiveSupport::Concern
- Included in:
- Ci::Runner, CommitStatus
- Defined in:
- app/models/concerns/taggable_queries.rb
Constant Summary collapse
- MAX_TAGS_IDS =
50
- TooManyTagsError =
Class.new(StandardError)
Instance Method Summary collapse
Instance Method Details
#tags_ids ⇒ Object
21 22 23 24 25 |
# File 'app/models/concerns/taggable_queries.rb', line 21 def .limit(MAX_TAGS_IDS).order('id ASC').pluck(:id).tap do |ids| raise TooManyTagsError if ids.size >= MAX_TAGS_IDS end end |
#tags_ids_relation ⇒ Object
27 28 29 |
# File 'app/models/concerns/taggable_queries.rb', line 27 def end |