* Get rid of early pathname requirement * Use require_relative where approciate * Drop unused files * Imported new application.rb, environment.rb and environments/* from fresh Rails app * Cleaned up boot.rb * Load config in boot.rb * Deduplicate environments/integration*.rb * Move username blacklist into defaults.yml * Ruby 1.9 Hash syntax everywhere * Reorganize lib/diaspora/markdownify to match conventions * Get rid of full path requires where possible * Add dummy content to production section diaspora.yml.example to prevent warning * Drop sqlite? method * Move postgres? method into ConfigurationMethods * Drop token authentication from User
13 lines
304 B
Ruby
13 lines
304 B
Ruby
module Diaspora
|
|
module Markdownify
|
|
class HTML < Redcarpet::Render::HTML
|
|
include ActionView::Helpers::TextHelper
|
|
include ActionView::Helpers::TagHelper
|
|
|
|
def autolink(link, type)
|
|
auto_link(link, :link => :urls, :html => { :target => "_blank" })
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|