Skip to content

Commit

Permalink
Fixed the following error:
Browse files Browse the repository at this point in the history
too few arguments (line #30)

30        def self.call(template)
31          "json = ::Jsonify::Builder.new(:format => :#{format});" +
32            template.source +
33          ";json.compile!;"
  • Loading branch information
markbates committed Aug 24, 2011
1 parent 8e64175 commit 9336f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsonify-rails/jsonify_builder.rb
Expand Up @@ -23,7 +23,7 @@ def default_format
Mime::JSON
end

def format
def self.format
Rails.application.config.respond_to?(:jsonify_format) ? Rails.application.config.jsonify_format : 'plain'
end

Expand Down

0 comments on commit 9336f24

Please sign in to comment.