old_sql 1.48.0 → 1.49.0
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.
|
@@ -133,9 +133,9 @@ module OldSql
|
|
|
133
133
|
end
|
|
134
134
|
|
|
135
135
|
def create_model_class
|
|
136
|
-
model_path = "#{app_path}/app/models/#{model_name}.rb"
|
|
136
|
+
model_path = "#{app_path}/app/models/#{model_name.singularize}.rb"
|
|
137
137
|
copy_file "devise_model.rb.template", model_path
|
|
138
|
-
gsub_file model_path, /DeviseModel/, "#{model_name.capitalize}"
|
|
138
|
+
gsub_file model_path, /DeviseModel/, "#{model_name.singularize.capitalize}"
|
|
139
139
|
end
|
|
140
140
|
|
|
141
141
|
def add_devise_to_routes
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: old_sql
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 1.
|
|
5
|
+
version: 1.49.0
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Eddie Gonzales
|
|
@@ -198,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
198
198
|
requirements:
|
|
199
199
|
- - ">="
|
|
200
200
|
- !ruby/object:Gem::Version
|
|
201
|
-
hash: -
|
|
201
|
+
hash: -819257666881299113
|
|
202
202
|
segments:
|
|
203
203
|
- 0
|
|
204
204
|
version: "0"
|