gitpartyguest 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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
|