Class: ApplicationRecord
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ApplicationRecord
- Defined in:
- lib/generators/harmonia/templates/application_record_extension.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#to_fm(record) ⇒ Hash
Converts an ActiveRecord record to FileMaker-compatible attributes This method should be overridden in each model that syncs to FileMaker.
Instance Method Details
#to_fm(record) ⇒ Hash
Converts an ActiveRecord record to FileMaker-compatible attributes This method should be overridden in each model that syncs to FileMaker
10 11 12 |
# File 'lib/generators/harmonia/templates/application_record_extension.rb', line 10 def to_fm(record) raise NotImplementedError, "#{self.class.name}#to_fm must be implemented to convert ActiveRecord records to FileMaker attributes" end |