Sha256: 3a768cc038bba01ac956003ed684e093737bea4fdcff1d523b10bda5a3c23249
Contents?: true
Size: 368 Bytes
Versions: 4
Compression:
Stored size: 368 Bytes
Contents
require 'rails' require "pbbuilder/handler" class Pbbuilder class Railtie < ::Rails::Railtie initializer :register_handler do ActiveSupport.on_load :action_view do Mime::Type.register "application/vnd.google.protobuf", :pb, [], %w(pb) ActionView::Template.register_template_handler :pbbuilder, PbbuilderHandler end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pbbuilder-0.13.3 | lib/pbbuilder/railtie.rb |
pbbuilder-0.13.2 | lib/pbbuilder/railtie.rb |
pbbuilder-0.13.1 | lib/pbbuilder/railtie.rb |
pbbuilder-0.13.0 | lib/pbbuilder/railtie.rb |