Permalink
Browse files

Removing unused Configuration class

  • Loading branch information...
1 parent 55301a7 commit e480c55b106bc5664be88dbe68f20fd9d5c68d18 @benhutton benhutton committed Dec 7, 2011
Showing with 1 addition and 12 deletions.
  1. +0 −1 lib/markdown_preview.rb
  2. +1 −6 lib/markdown_preview/base.rb
  3. +0 −5 lib/markdown_preview/configuration.rb
View
1 lib/markdown_preview.rb
@@ -1,7 +1,6 @@
# Require all the necessary files to run MarkdownPreview
require 'markdown_preview/base'
require 'markdown_preview/exceptions'
-require 'markdown_preview/configuration'
require 'markdown_preview/helpers'
module MarkdownPreview
View
7 lib/markdown_preview/base.rb
@@ -8,16 +8,11 @@ def self.included(base)
module ClassMethods
# The controller declaration to enable markdown_preview certain actions.
- # Takes options hash, raw_options string, and any normal params you
- # can send to a before_filter (only, except etc)
+ # Takes any normal params you can send to a before_filter (only, except etc)
def uses_markdown_preview(options = {})
- configuration = MarkdownPreview::Configuration.new(options.delete(:options), options.delete(:raw_options))
# Set instance vars in the current class
proc = Proc.new do |c|
- configurations = c.instance_variable_get(:@markdown_preview_configurations) || []
- configurations << configuration
- c.instance_variable_set(:@markdown_preview_configurations, configurations)
c.instance_variable_set(:@uses_markdown_preview, true)
end
View
5 lib/markdown_preview/configuration.rb
@@ -1,5 +0,0 @@
-module MarkdownPreview
- class Configuration
-
- end
-end

0 comments on commit e480c55

Please sign in to comment.