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
34 35 36 |
# File 'app/models/cas/content.rb', line 34 def date_year date.year end |
#metadata ⇒ Object
38 39 40 41 42 43 44 |
# File 'app/models/cas/content.rb', line 38 def if self[:metadata].is_a?(String) JSON.parse(self[:metadata]) else super end end |