Module: AssetManager::Deprecated::AssetsHelper
- Included in:
- AssetsHelper
- Defined in:
- lib/asset_manager/deprecated.rb
Instance Method Summary collapse
- #am_icon_url(type, size = 16, frontend = true) ⇒ Object
- #asset(resource, version = nil, options = {}, container_asset_class = '', linked = false) ⇒ Object
- #asset_group(assets, size = nil) ⇒ Object
- #asset_manager_select_link(resource, field, save = false) ⇒ Object
- #asset_url(resource, version = nil) ⇒ Object
- #assets(collection, version = nil, options = {}, container_class = '', linked = false) ⇒ Object
- #categorized_asset_group(assets, size = nil) ⇒ Object
- #clippy(text, bgcolor = '#FFFFFF') ⇒ Object
- #render_attachments(assets, title = t('.downloads', default: 'Downloads'), size = nil, categorized = true) ⇒ Object
Instance Method Details
#am_icon_url(type, size = 16, frontend = true) ⇒ Object
10 11 12 13 |
# File 'lib/asset_manager/deprecated.rb', line 10 def am_icon_url(type, size = 16, frontend = true) Rails.logger.warn ActiveSupport::Deprecation.warn("#{__callee__} is deprecated - use am_ico_path instead.") am_ico_path(type, size: size) end |
#asset(resource, version = nil, options = {}, container_asset_class = '', linked = false) ⇒ Object
35 36 37 38 |
# File 'lib/asset_manager/deprecated.rb', line 35 def asset(resource, version = nil, = {}, container_asset_class = '', linked = false) Rails.logger.warn ActiveSupport::Deprecation.warn("#{__callee__} is deprecated - use am_render instead.") nil end |
#asset_group(assets, size = nil) ⇒ Object
25 26 27 28 |
# File 'lib/asset_manager/deprecated.rb', line 25 def asset_group(assets, size = nil) Rails.logger.warn ActiveSupport::Deprecation.warn("#{__callee__} is deprecated - use am_render instead.") nil end |
#asset_manager_select_link(resource, field, save = false) ⇒ Object
5 6 7 8 |
# File 'lib/asset_manager/deprecated.rb', line 5 def asset_manager_select_link(resource, field, save = false) Rails.logger.warn ActiveSupport::Deprecation.warn("#{__callee__} is deprecated - use am_select instead.") am_select_link(resource, field, save: save) end |
#asset_url(resource, version = nil) ⇒ Object
45 46 47 48 |
# File 'lib/asset_manager/deprecated.rb', line 45 def asset_url(resource, version = nil) Rails.logger.warn ActiveSupport::Deprecation.warn("#{__callee__} is deprecated - use am_asset_url instead.") am_asset_url(resource, version: version) end |
#assets(collection, version = nil, options = {}, container_class = '', linked = false) ⇒ Object
30 31 32 33 |
# File 'lib/asset_manager/deprecated.rb', line 30 def assets(collection, version = nil, = {}, container_class = '', linked = false) Rails.logger.warn ActiveSupport::Deprecation.warn("#{__callee__} is deprecated - use am_render instead.") nil end |
#categorized_asset_group(assets, size = nil) ⇒ Object
20 21 22 23 |
# File 'lib/asset_manager/deprecated.rb', line 20 def categorized_asset_group(assets, size = nil) Rails.logger.warn ActiveSupport::Deprecation.warn("#{__callee__} is deprecated - use am_render instead.") nil end |
#clippy(text, bgcolor = '#FFFFFF') ⇒ Object
40 41 42 43 |
# File 'lib/asset_manager/deprecated.rb', line 40 def clippy(text, bgcolor = '#FFFFFF') Rails.logger.warn ActiveSupport::Deprecation.warn("#{__callee__} is deprecated - use am_clippy instead.") am_clippy(text, bg_color: bgcolor) end |
#render_attachments(assets, title = t('.downloads', default: 'Downloads'), size = nil, categorized = true) ⇒ Object
15 16 17 18 |
# File 'lib/asset_manager/deprecated.rb', line 15 def (assets, title = t('.downloads', default: 'Downloads'), size = nil, categorized = true) Rails.logger.warn ActiveSupport::Deprecation.warn("#{__callee__} is deprecated - use am_render instead.") nil end |