Skip to content

Instantly share code, notes, and snippets.

@oleander
Last active December 23, 2015 19:29
Show Gist options
  • Save oleander/76536c2fdea799eaa429 to your computer and use it in GitHub Desktop.
Save oleander/76536c2fdea799eaa429 to your computer and use it in GitHub Desktop.
class StaticPlaylist < ActiveRecord::Base
default_scope lambda { where(".... = ?", type_id) }
def self.type_id
4
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment