Skip to content

Commit

Permalink
Before check formatting style, make sure was declared in configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Guidi committed Jun 30, 2008
1 parent a13c11f commit 4952155
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/click_to_globalize.rb
Expand Up @@ -90,6 +90,7 @@ def observers # :nodoc:
# * textile (RedCloth gem)
# * markdown (BlueCloth gem)
def formatting
return unless configuration['formatting']
@@formatting ||= case configuration['formatting'].to_sym
when :textile then textile? ? :textile : nil
when :markdown then markdown? ? :markdown : nil
Expand Down

0 comments on commit 4952155

Please sign in to comment.