Class: Audio
- Inherits:
-
Transit::Context
- Object
- Transit::Context
- Audio
- Defined in:
- app/models/contexts/audio.rb
Instance Method Summary collapse
Methods inherited from Transit::Context
#ensure_context_position_value, #field_name, #file_ext, #package_type, #shortname, #to_backbone
Instance Method Details
#media_context? ⇒ Boolean
4 5 6 |
# File 'app/models/contexts/audio.rb', line 4 def media_context? true end |
#to_js(attrs = {}) ⇒ Object
8 9 10 |
# File 'app/models/contexts/audio.rb', line 8 def to_js( attrs = {} ) super({ source: source, ext: file_ext }.reverse_merge!(attrs)) end |