Sha256: b70130632b7813add15ed348a66a30110fcae0d2c2795bf812d31c8d4adddf4d

Contents?: true

Size: 300 Bytes

Versions: 9

Compression:

Stored size: 300 Bytes

Contents

require "micropub/server/rails/middleware"

module Micropub::Server::Rails
  class Railtie < Rails::Railtie
    initializer "micropub.server.configure_rails_initialization" do
      app.middleware.use Micropub::Server::Rails::Middleware
    end

    def app
      Rails.application
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
micropub-server-rails-0.1.8 lib/micropub/server/rails/railtie.rb
micropub-server-rails-0.1.7 lib/micropub/server/rails/railtie.rb
micropub-server-rails-0.1.6 lib/micropub/server/rails/railtie.rb
micropub-server-rails-0.1.5 lib/micropub/server/rails/railtie.rb
micropub-server-rails-0.1.4 lib/micropub/server/rails/railtie.rb
micropub-server-rails-0.1.3 lib/micropub/server/rails/railtie.rb
micropub-server-rails-0.1.2 lib/micropub/server/rails/railtie.rb
micropub-server-rails-0.1.1 lib/micropub/server/rails/railtie.rb
micropub-server-rails-0.1.0 lib/micropub/server/rails/railtie.rb