Sha256: 02b8e278bc84ef1510156e45e893682053cf9c1c8d43504e14e0a3555d61ffc5

Contents?: true

Size: 285 Bytes

Versions: 7

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(:include, PartiallyUseful::PartialRenderer)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
partially_useful-5.1.0 lib/partially_useful/railtie.rb
partially_useful-5.0.0 lib/partially_useful/railtie.rb
partially_useful-0.2.2 lib/partially_useful/railtie.rb
partially_useful-0.2.1 lib/partially_useful/railtie.rb
partially_useful-0.2.0 lib/partially_useful/railtie.rb
partially_useful-0.1.1 lib/partially_useful/railtie.rb
partially_useful-0.1.0 lib/partially_useful/railtie.rb