Class: Cas::Content
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Cas::Content
- Extended by:
- FriendlyId
- Includes:
- PgSearch
- Defined in:
- app/models/cas/content.rb
Instance Method Summary collapse
Instance Method Details
#date_year ⇒ Object
33 34 35 |
# File 'app/models/cas/content.rb', line 33 def date_year date.year end |
#metadata ⇒ Object
37 38 39 40 41 42 43 |
# File 'app/models/cas/content.rb', line 37 def if self[:metadata].is_a?(String) JSON.parse(self[:metadata]) else super end end |