Sha256: b51fa4b32b8a7bace9dc1f64498b7bfe0c5709f5bd678d844853f58a119057c6

Contents?: true

Size: 285 Bytes

Versions: 2

Compression:

Stored size: 285 Bytes

Contents

module PartiallyUseful
  class Railtie < Rails::Railtie
    config.partially_useful = true

    initializer :partially_useful do |app|
      if app.config.partially_useful
        ActionView::PartialRenderer.send(:prepend, PartiallyUseful::PartialRenderer)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
partially_useful-0.0.3 lib/partially_useful/railtie.rb
partially_useful-0.0.2 lib/partially_useful/railtie.rb