lib/landable/partial.rb in landable-1.13.1 vs lib/landable/partial.rb in landable-1.13.2
- old
+ new
@@ -3,11 +3,11 @@
def initialize(file)
@file = file
end
def process
- @name = @file.gsub('/',' ').titlecase
+ @name = @file.gsub('/', ' ').titlecase
@description = "The Code for this template can be seen at #{@file} in the source code"
@slug = @file.gsub(/[^\w]/, '_')
@processed = true
end
@@ -20,10 +20,10 @@
template.name = @name
template.slug = @slug
template.description = @description
template.editable = false
template.is_layout = false
- template.thumbnail_url ||= "http://placehold.it/300x200"
+ template.thumbnail_url ||= 'http://placehold.it/300x200'
# Save!
template.save!
# Publish!