Class: Effective::Snippets::EffectiveAsset
- Inherits:
-
Snippet
- Object
- Snippet
- Effective::Snippets::EffectiveAsset
- Defined in:
- app/models/effective/snippets/effective_asset.rb
Instance Method Summary collapse
Instance Method Details
#asset ⇒ Object
8 9 10 |
# File 'app/models/effective/snippets/effective_asset.rb', line 8 def asset @asset ||= (Effective::Asset.where(:id => asset_id).first if asset_id) end |
#snippet_tag ⇒ Object
12 13 14 |
# File 'app/models/effective/snippets/effective_asset.rb', line 12 def snippet_tag :span end |