Class: ScribblerImage
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ScribblerImage
- Includes:
- ScribbleCms::ScribblerElementSetup
- Defined in:
- app/models/scribbler_image.rb
Instance Method Summary collapse
Methods included from ScribbleCms::ScribblerElementSetup
#check_uniqueness, #element_type, #hint, #human_name, included, #searchable_content
Instance Method Details
#sanitize_filename(filename) ⇒ Object
8 9 10 |
# File 'app/models/scribbler_image.rb', line 8 def sanitize_filename(filename) [filename.split(".").first.parameterize, filename.split(".").last].join(".") end |