Class: EricWeixin::Cms::Weixin::CustomsServiceRecordsController
- Inherits:
-
BaseController
- Object
- BaseController
- EricWeixin::Cms::Weixin::CustomsServiceRecordsController
- Defined in:
- app/controllers/eric_weixin/cms/weixin/customs_service_records_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 6 7 |
# File 'app/controllers/eric_weixin/cms/weixin/customs_service_records_controller.rb', line 3 def index = params.permit(:public_account_id, :opercode, :chat_date, :chat_content, :worker, :nick_name) @customs_service_records = ::EricWeixin::CustomsServiceRecord.common_query @customs_service_records = @customs_service_records.order(:time).paginate(page: params[:page], per_page:20) end |