Class: BridgeCache::UserCourseVisit
- Inherits:
-
BridgeBaseModel
- Object
- ActiveRecord::Base
- BridgeBaseModel
- BridgeCache::UserCourseVisit
- Extended by:
- Data::BridgeModel
- Defined in:
- app/models/bridge_cache/user_course_visit.rb
Constant Summary
Constants included from Data::BridgeModel
Data::BridgeModel::EXCLUDED_COLUMNS, Data::BridgeModel::OVERRIDDEN_COLUMNS
Constants inherited from BridgeBaseModel
BridgeBaseModel::BRIDGE_ID, BridgeBaseModel::DOMAIN_ID, BridgeBaseModel::OWNER_ID, BridgeBaseModel::PARENT_ID
Class Method Summary collapse
Methods included from Data::BridgeModel
adjusted_table_name, cleanup, create_from_csv_row, csv_mapping, extended, for_domain, format_import_row, import_from_csv, is_active?, uniq_constraint_name, unique_column_names, webhook_completed, webhook_created, webhook_deleted, webhook_updated
Methods inherited from BridgeBaseModel
#adjusted_table_name, #bridge_id
Class Method Details
.csv_mapping ⇒ Object
20 21 22 23 24 |
# File 'app/models/bridge_cache/user_course_visit.rb', line 20 def self.csv_mapping mapping = super mapping.delete('bridge_id') mapping end |
.for_domain(domain_id) ⇒ Object
5 6 7 |
# File 'app/models/bridge_cache/user_course_visit.rb', line 5 def self.for_domain(domain_id) joins(:course_template).merge(BridgeCache::CourseTemplate.for_domain(domain_id)) end |
.unique_column_names ⇒ Object
16 17 18 |
# File 'app/models/bridge_cache/user_course_visit.rb', line 16 def self.unique_column_names %w[token] end |