Class: Locomotive::Steam::Adapters::Filesystem::Sanitizers::ContentType

Inherits:
Object
  • Object
show all
Includes:
Locomotive::Steam::Adapters::Filesystem::Sanitizer
Defined in:
lib/locomotive/steam/adapters/filesystem/sanitizers/content_type.rb

Instance Attribute Summary

Attributes included from Locomotive::Steam::Adapters::Filesystem::Sanitizer

#scope

Instance Method Summary collapse

Methods included from Locomotive::Steam::Adapters::Filesystem::Sanitizer

#apply_to, #apply_to_dataset, #apply_to_entity_with_dataset, #attach_site_to, #setup, #with

Instance Method Details

#apply_to_entity(entity) ⇒ Object



10
11
12
13
14
# File 'lib/locomotive/steam/adapters/filesystem/sanitizers/content_type.rb', line 10

def apply_to_entity(entity)
  super

  entity[:slug] = entity[:slug].to_s
end