Module: PagesCore::PageModel::Attachments

Extended by:
ActiveSupport::Concern
Included in:
Page
Defined in:
app/models/concerns/pages_core/page_model/attachments.rb

Instance Method Summary collapse

Instance Method Details

#attachmentsObject



24
25
26
# File 'app/models/concerns/pages_core/page_model/attachments.rb', line 24

def attachments
  super.in_locale(locale)
end

#attachments?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'app/models/concerns/pages_core/page_model/attachments.rb', line 28

def attachments?
  attachments.any?
end

#filesObject



36
37
38
# File 'app/models/concerns/pages_core/page_model/attachments.rb', line 36

def files
  page_files
end

#page_filesObject



32
33
34
# File 'app/models/concerns/pages_core/page_model/attachments.rb', line 32

def page_files
  super.in_locale(locale)
end