scaffold_plus 1.9.0 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 784dd7153e90d8309d4fff348da8592ea4a95e7d
4
- data.tar.gz: c177a2e5941f52aecf4e141089f93da22b212de0
3
+ metadata.gz: 87cdca95970c67bcb7fffbb7624108b5d889e622
4
+ data.tar.gz: 8eb87613b8b7cdb4ebbf73b9573359a069325e86
5
5
  SHA512:
6
- metadata.gz: fc2de205ec80b1a11dfc489ed615f6cb40b3a62c0b54831749b8ffe5314fcbba5984c12617489614789b308a2ee759383e9a71562651cde39ff03a8ac1ad854d
7
- data.tar.gz: 6a74fa0d56e659817da2fbb5b5fbf882bb51ba5ac9b0e76368ac23730ddef82cdbd20f4e50b5bde30b4e0251afa759bf7b486fc04d9c7c03297a7ef6d00dd05c
6
+ metadata.gz: 9965bd780a6f65704c4e6cd24a08c20a47e3179516e3b42b3e7b896c2a21114bcdf33ea239da4ec63fc349387365d0cb73ef8860a456e9930140da9c69689688
7
+ data.tar.gz: 14316209cd999b6d5be0f8f43f10d812cb50f90cd333dae3099fcc03be6fdd2c73738e4eed11993d14e8d72d2760f71336e0ac74626d23188fb6c7a031a18d44
@@ -25,17 +25,12 @@ module ScaffoldPlus
25
25
  inject_into_class "app/models/#{name}.rb", class_name do
26
26
  text = options.before? ? "\n" : ""
27
27
  text << " extend FriendlyId\n"
28
- text << " friendly_id :#{attribute}, use: :slugged\n"
28
+ text << " friendly_id :#{attribute}, use: [:slugged, :finders]\n"
29
29
  text << "\n" if options.after?
30
30
  text
31
31
  end
32
32
  end
33
33
 
34
- def update_controller
35
- file = "app/controllers/#{table_name}_controller.rb"
36
- gsub_file file, /(#{class_name})\.find/, "\\1.friendly.find"
37
- end
38
-
39
34
  protected
40
35
 
41
36
  def migration_name
@@ -1,3 +1,3 @@
1
1
  module ScaffoldPlus
2
- VERSION = "1.9.0"
2
+ VERSION = "1.9.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaffold_plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volker Wiegand
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-29 00:00:00.000000000 Z
11
+ date: 2014-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord