Module: Pageflow::PaperclipInterpolations::Support Private
- Extended by:
- Support
- Included in:
- Support
- Defined in:
- lib/pageflow/paperclip_interpolations/support.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #class_basename(attachment, _style) ⇒ Object private
- #pageflow_attachments_version(_attachment, style) ⇒ Object private
- #pageflow_placeholder(_attachment, style) ⇒ Object private
Instance Method Details
#class_basename(attachment, _style) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 19 20 21 22 23 24 |
# File 'lib/pageflow/paperclip_interpolations/support.rb', line 16 def class_basename(, _style) \ .instance .class .name .demodulize .underscore .pluralize end |
#pageflow_attachments_version(_attachment, style) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 14 |
# File 'lib/pageflow/paperclip_interpolations/support.rb', line 11 def (, style) version = Pageflow.config. "#{version}/" if version.present? && style != :original end |
#pageflow_placeholder(_attachment, style) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/pageflow/paperclip_interpolations/support.rb', line 7 def pageflow_placeholder(, style) "pageflow/placeholder_#{style}.jpg" end |