appchat 0.0.0 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/appchat/appchat_generator.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 673aa6b6d3460c98d8731fd03b68201bfdda69a190f3b3890b1c05160fd707f1
|
4
|
+
data.tar.gz: 15fa530e300361c280054729fb325b2bf12bf169565f9b9602ceec763be3b6d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2afea783c7fdf8e72f42194d8be4b498250e726dde74fb99b5d177129f6140ee930cfc17fca8b6e9c6b971e6c458c82d2cf590acce9c67a8e712402a12b59eb0
|
7
|
+
data.tar.gz: 8717c5896f4fe1e46499464dd6389f366147c43381a7eb03bea5e1871a42fd4a766c81d5da3ad21546e782c82b1704fa70997f33b04f288538091b40cf00d30a
|
@@ -4,7 +4,8 @@ require 'bundler'
|
|
4
4
|
|
5
5
|
class AppchatGenerator < Rails::Generators::Base
|
6
6
|
include Turbo::FramesHelper, ActionView::Helpers::TagHelper,
|
7
|
-
ActionView::Helpers::FormTagHelper, ActionView::Helpers::FormHelper,
|
7
|
+
ActionView::Helpers::FormTagHelper, ActionView::Helpers::FormHelper,
|
8
|
+
Rails.application.routes.url_helpers
|
8
9
|
source_root File.expand_path('templates', __dir__)
|
9
10
|
|
10
11
|
def add_gems
|
@@ -24,6 +25,7 @@ class AppchatGenerator < Rails::Generators::Base
|
|
24
25
|
|
25
26
|
def generate_scaffolds
|
26
27
|
generate "model", "Chat"
|
28
|
+
route "resources :chats"
|
27
29
|
generate "scaffold", "Message chat:references content:text role:integer"
|
28
30
|
end
|
29
31
|
|