Sha256: d263aa57938d1623cf89f1b3ae38555b2e91f809e7d3ecae447aa161ce396904
Contents?: true
Size: 439 Bytes
Versions: 2
Compression:
Stored size: 439 Bytes
Contents
require 'action_view' module ActionView module Template::Handlers class JsonifyBuilder < Template::Handler include Compilable self.default_format = Mime::JSON def compile(template) "json = ::Jsonify::Builder.new();" + template.source + ";json.compile!;" end end end end ActionView::Template.register_template_handler :jsonify, ActionView::Template::Handlers::JsonifyBuilder
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jsonify-rails-0.0.6 | lib/jsonify-rails/jsonify_builder.rb |
jsonify-rails-0.0.5 | lib/jsonify-rails/jsonify_builder.rb |