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
43 44 45 |
# File 'app/models/cas/content.rb', line 43 def date_year date.year end |
#metadata ⇒ Object
47 48 49 50 51 52 53 |
# File 'app/models/cas/content.rb', line 47 def if self[:metadata].is_a?(String) JSON.parse(self[:metadata]) else super end end |