Skip to content

Commit

Permalink
Merge pull request #1 from customink/succint_mw_init
Browse files Browse the repository at this point in the history
Use the more succinct style of railtie initializer
  • Loading branch information
chmurph2 committed Oct 13, 2014
2 parents 6480dcc + 75bdac6 commit 3f4a69f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/is_it_up/railtie.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module IsItUp
class Railtie < Rails::Railtie
initializer "is_it_up.configure_rails_initialization" do
Rails.application.middleware.use IsItUp::Middleware
initializer "is_it_up.configure_rails_initialization" do |app|
app.middleware.use IsItUp::Middleware
end
end
end

0 comments on commit 3f4a69f

Please sign in to comment.