2013-08-07から1日間の記事一覧
今日元食べログの大エンジニアとお話していて、scopeっていけてないねっていう話になった。scopeとは以下のようなもので class User < AR::Base has_many :blogs has_many :fav_stars, through: :blogs scope :recent, -> { order('created_at DESC') } scop…
今日元食べログの大エンジニアとお話していて、scopeっていけてないねっていう話になった。scopeとは以下のようなもので class User < AR::Base has_many :blogs has_many :fav_stars, through: :blogs scope :recent, -> { order('created_at DESC') } scop…