Class: AppBozhu

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/subapp_model/app_bozhu.rb

Class Method Summary collapse

Class Method Details

.find_by_appid(appid, limit) ⇒ Object

belongs_to :app has_many :app_album,:association_foreign_key=>“uid”, :limit=>Settings.per_page.app_album



17
18
19
# File 'lib/subapp_model/app_bozhu.rb', line 17

def self.find_by_appid(appid, limit)
  return AppBozhu.where(app_id: appid).page(limit[:page_id]).per(limit[:page_size]).order("order_num asc, created_at desc")
end