class Locomotive::Steam::SnippetRepository

Public Instance Methods

by_slug(slug) click to toggle source
# File lib/locomotive/steam/repositories/snippet_repository.rb, line 11
def by_slug(slug)
  first { where(slug: slug) }
end