wrgem 0.0.23 → 0.0.24
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e8319540edf20a8a1632b3db17438ce7d0d21ca6
|
|
4
|
+
data.tar.gz: e892db5b8a161a7538746feba2ae824ba960aab5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f17c2eb88ff8ad9cb08b5fc6a470ed98bd494a18ecc7d275724ea251de9d65be221d47090e54172faba56a8c69ac103f571e08f2018e2014293d143c1dae109
|
|
7
|
+
data.tar.gz: 05eb603824f1b59da0713d9c96311c8f13158d4ff0d98096f6850e724bc2f4ed648f22dc9d66faaeb25a942adb8e002f441607114556e0a03135e8e531141f6b
|
|
@@ -53,22 +53,22 @@ class WradminGenerator < Rails::Generators::Base
|
|
|
53
53
|
|
|
54
54
|
# ADICIONANDO A ROTA
|
|
55
55
|
route "
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
56
|
+
devise_for :users, controllers: { sessions: 'users/sessions', registrations: 'users/registrations', passwords: 'users/passwords' }
|
|
57
|
+
|
|
58
|
+
get 'admin/users/new' => 'admin/users#new'
|
|
59
|
+
get 'admin/users/:id' => 'admin/users#view'
|
|
60
|
+
get 'admin/users/:id/edit' => 'admin/users#edit'
|
|
61
|
+
|
|
62
|
+
devise_scope :user do
|
|
63
|
+
get 'logout' => 'users/sessions#destroy'
|
|
64
|
+
post 'logout' => 'users/sessions#destroy'
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
namespace :admin do
|
|
68
|
+
resources :users
|
|
69
|
+
resources :contacts
|
|
70
|
+
end
|
|
71
|
+
"
|
|
72
72
|
|
|
73
73
|
# RODANDO AS MIGRATES
|
|
74
74
|
run "rake db:migrate"
|
|
@@ -24,18 +24,17 @@ class WrstartGenerator < Rails::Generators::Base
|
|
|
24
24
|
|
|
25
25
|
application do
|
|
26
26
|
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
end
|
|
27
|
+
Rails.application.assets.register_engine('.slim', Slim::Template)
|
|
28
|
+
Slim::Engine.set_default_options format: :html5
|
|
29
|
+
config.i18n.default_locale = 'pt-BR'
|
|
30
|
+
config.time_zone = 'Brasilia'
|
|
31
|
+
|
|
32
|
+
config.generators do |g|
|
|
33
|
+
g.assets false
|
|
34
|
+
g.helper false
|
|
35
|
+
g.test_framework nil
|
|
36
|
+
g.jbuilder false
|
|
37
|
+
end
|
|
39
38
|
"
|
|
40
39
|
end
|
|
41
40
|
|
data/lib/wrgem/version.rb
CHANGED