gitpartyguest 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,9 +3,16 @@ class Gitpartyguest::InitializerGenerator < Rails::Generators::Base
|
|
3
3
|
|
4
4
|
desc "Generates routes for updating site."
|
5
5
|
|
6
|
-
def
|
6
|
+
def initializer
|
7
7
|
copy_file "repo_init.rb", "config/initializers/repo_init.rb" '
|
8
8
|
route "resources :update, :only => :index"'
|
9
9
|
end
|
10
10
|
|
11
|
+
def copy_initializer_file
|
12
|
+
copy_file "repo_init.rb", "config/initializers/repo_init.rb"
|
13
|
+
end
|
14
|
+
|
15
|
+
def add_route
|
16
|
+
route "resources :update, :only => :index"
|
17
|
+
end
|
11
18
|
end
|