Method: AssetType#paperclip_styles
- Defined in:
-
app/models/asset_type.rb,
lib/trusty_cms/deprecation.rb
Parses and combines the various ways in which paperclip styles can be defined, and normalises them into the format that paperclip expects. Note that :styles => :standard has already been replaced with the results of a call to standard_styles. Styles are passed to paperclip as a hash and arbitrary keys can be passed through from configuration.
97 98 99 100 101 102 103 104 105 |
# File 'app/models/asset_type.rb', line 97 def paperclip_styles # Styles are not relevant if processors are not defined. @paperclip_styles ||= if paperclip_processors.any? normalize_style_rules(configured_styles.merge(styles)) else {} end @paperclip_styles end |