Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Commit

Permalink
Remove Redcarpet Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Groeneveld committed Aug 21, 2015
1 parent 0b71d5e commit d9a2982
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Deprecated
- Support for Ruby 1.9 has been dropped. We're not automatically testing it anymore.

### Removed
- Database migrations from Markdown to HTML and required gems.

### Fixed
- More robust incoming email support.
- The content of inline HTML style tags is now correctly removed as well.
Expand Down
3 changes: 0 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ gem 'will_paginate'
# attachments, thumbnails etc
gem 'paperclip'

# Markdown
gem 'redcarpet'

# select2 replacement for selectboxes
gem 'select2-rails'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
class ReplaceSignaturesMarkdownWithTinyce < ActiveRecord::Migration

def change
markdown = Redcarpet::Markdown.new Redcarpet::Render::HTML
User.all.each do |user|
if user.signature.present?
user.signature = markdown.render(user.signature).html_safe
user.save!
end
end

Ticket.all.each do |ticket|
if ticket.content.present?
ticket.content = markdown.render(ticket.content).html_safe
ticket.save!
end
end
# this migration has been removed in order for the gems to be removed
end
end

0 comments on commit d9a2982

Please sign in to comment.