Sha256: b4a9a63b618f705c62d611efc8971bf1fb174b0e37644da36a64b052c6e7b33f
Contents?: true
Size: 412 Bytes
Versions: 4
Compression:
Stored size: 412 Bytes
Contents
# encoding: utf-8 module BeerDbAdmin class TagsController < BeerDbAdminController def index @beer_tags = Tag.uniq.joins(:taggings).where("taggings.taggable_type='BeerDb::Models::Beer'").order('key').all @brewery_tags = Tag.uniq.joins(:taggings).where("taggings.taggable_type='BeerDb::Models::Brewery'").order('key').all end end # class TagsController end # module BeerDbAdmin
Version data entries
4 entries across 4 versions & 1 rubygems