lib/periscope_rails/engine.rb in periscope_rails-0.0.10 vs lib/periscope_rails/engine.rb in periscope_rails-0.0.12
- old
+ new
@@ -1,4 +1,12 @@
-module PeriscopeRails
- class Engine < Rails::Engine
- end
-end
\ No newline at end of file
+module PeriscopeRails
+ class Engine < Rails::Engine
+
+ initializer "periscope_rails.add_routes" do |app|
+ app.routes.prepend do
+ match "periscope/login", :to => "periscope#login", :as => "periscope_login"
+ match "periscope/look", :to => "periscope#look", :as => "periscope_look"
+ end
+ end
+
+ end
+end