Class: Unidom::Action::Searching
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Unidom::Action::Searching
- Includes:
- Concerns::AsCaused, Common::Concerns::ModelExtension
- Defined in:
- app/models/unidom/action/searching.rb
Overview
Searching 是行为的原因。 #activity_code 是活动代码。
Class Method Summary collapse
Class Method Details
.search!(it, on: '', version: '1', per: {}, due_to: nil, by: nil, via: nil, at: Time.now, displaying: 0, of_total: 0, on_current_page: 0, of_total_page: 0, per_page: 0) ⇒ Object
38 39 40 41 42 |
# File 'app/models/unidom/action/searching.rb', line 38 def self.search!(it, on: '', version: '1', per: {}, due_to: nil, by: nil, via: nil, at: Time.now, displaying: 0, of_total: 0, on_current_page: 0, of_total_page: 0, per_page: 0) create! resource_name: it, platform_name: on, platform_version: version, criteria: per, reason: due_to, searcher_party: by, searcher_visitor: via, opened_at: at, shown_count: , found_count: of_total, current_page: on_current_page, total_pages: of_total_page, per_page: per_page end |