phcmemberspro 20.2.2 → 20.3.0

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: ef1417328e4b860e6dbdb0e08a595a958986899c
4
- data.tar.gz: f0af6418d0265ce398536f6250717f404bd9a588
3
+ metadata.gz: b91bfcad700e9e6f18e968cd4bdd92e0f36df5d9
4
+ data.tar.gz: dfcfe61369b3a255fa839e2f707d9fa818c17c9b
5
5
  SHA512:
6
- metadata.gz: 6f13850b869ab086a9dd609ea0457c579b6567802dea20cdcd445899cd550462ea099247f1ff4a6e661fed51e2eca178c41931404364f5442724801580235744
7
- data.tar.gz: 6cd98fc94fdc6c9d2adf881a746f2e72802acf3131cdcc11ddb9025a2b4cf9d56c34cf449fde90907533f2e00e7b81e994211d37afe0194a2d5438ab6b6f2dd1
6
+ metadata.gz: 531b73b5e2cb252da341eaff7b4dc01ee7a0f309a63bd063042e5ac6c6400f613b3ddcda9872daec14d01c835073ba7cacccde18debe3e70be77d0b224890bbc
7
+ data.tar.gz: b41e08de52845820de4a5208a8883658f704df76a5989d2d16267d7846f1ad5ee0ab95f02bf9792818ac8178223d183e00c95e071c6ea854f97c2bfcd86663c4
@@ -0,0 +1,92 @@
1
+ # FriendlyId Global Configuration
2
+ #
3
+ # Use this to set up shared configuration options for your entire application.
4
+ # Any of the configuration options shown here can also be applied to single
5
+ # models by passing arguments to the `friendly_id` class method or defining
6
+ # methods in your model.
7
+ #
8
+ # To learn more, check out the guide:
9
+ #
10
+ # http://norman.github.io/friendly_id/file.Guide.html
11
+
12
+ FriendlyId.defaults do |config|
13
+ # ## Reserved Words
14
+ #
15
+ # Some words could conflict with Rails's routes when used as slugs, or are
16
+ # undesirable to allow as slugs. Edit this list as needed for your app.
17
+ config.use :reserved
18
+
19
+ config.reserved_words = %w(new edit index session login logout users admin
20
+ stylesheets assets javascripts images)
21
+
22
+ # ## Friendly Finders
23
+ #
24
+ # Uncomment this to use friendly finders in all models. By default, if
25
+ # you wish to find a record by its friendly id, you must do:
26
+ #
27
+ # MyModel.friendly.find('foo')
28
+ #
29
+ # If you uncomment this, you can do:
30
+ #
31
+ # MyModel.find('foo')
32
+ #
33
+ # This is significantly more convenient but may not be appropriate for
34
+ # all applications, so you must explicity opt-in to this behavior. You can
35
+ # always also configure it on a per-model basis if you prefer.
36
+ #
37
+ # Something else to consider is that using the :finders addon boosts
38
+ # performance because it will avoid Rails-internal code that makes runtime
39
+ # calls to `Module.extend`.
40
+ #
41
+ # config.use :finders
42
+ #
43
+ # ## Slugs
44
+ #
45
+ # Most applications will use the :slugged module everywhere. If you wish
46
+ # to do so, uncomment the following line.
47
+ #
48
+ # config.use :slugged
49
+ #
50
+ # By default, FriendlyId's :slugged addon expects the slug column to be named
51
+ # 'slug', but you can change it if you wish.
52
+ #
53
+ # config.slug_column = 'slug'
54
+ #
55
+ # When FriendlyId can not generate a unique ID from your base method, it appends
56
+ # a UUID, separated by a single dash. You can configure the character used as the
57
+ # separator. If you're upgrading from FriendlyId 4, you may wish to replace this
58
+ # with two dashes.
59
+ #
60
+ # config.sequence_separator = '-'
61
+ #
62
+ # Note that you must use the :slugged addon **prior** to the line which
63
+ # configures the sequence separator, or else FriendlyId will raise an undefined
64
+ # method error.
65
+ #
66
+ # ## Tips and Tricks
67
+ #
68
+ # ### Controlling when slugs are generated
69
+ #
70
+ # As of FriendlyId 5.0, new slugs are generated only when the slug field is
71
+ # nil, but if you're using a column as your base method can change this
72
+ # behavior by overriding the `should_generate_new_friendly_id?` method that
73
+ # FriendlyId adds to your model. The change below makes FriendlyId 5.0 behave
74
+ # more like 4.0.
75
+ #
76
+ # config.use Module.new {
77
+ # def should_generate_new_friendly_id?
78
+ # slug.blank? || <your_column_name_here>_changed?
79
+ # end
80
+ # }
81
+ #
82
+ # FriendlyId uses Rails's `parameterize` method to generate slugs, but for
83
+ # languages that don't use the Roman alphabet, that's not usually sufficient.
84
+ # Here we use the Babosa library to transliterate Russian Cyrillic slugs to
85
+ # ASCII. If you use this, don't forget to add "babosa" to your Gemfile.
86
+ #
87
+ # config.use Module.new {
88
+ # def normalize_friendly_id(text)
89
+ # text.to_slug.normalize! :transliterations => [:russian, :latin]
90
+ # end
91
+ # }
92
+ end
@@ -1,3 +1,3 @@
1
1
  module Phcmemberspro
2
- VERSION = "20.2.2"
2
+ VERSION = "20.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcmemberspro
3
3
  version: !ruby/object:Gem::Version
4
- version: 20.2.2
4
+ version: 20.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
@@ -721,6 +721,7 @@ files:
721
721
  - app/views/phcmemberspro/member/profiles/new.html.erb
722
722
  - app/views/phcmemberspro/member/profiles/show.html.erb
723
723
  - app/views/phcmemberspro/modules/dashboards/index.html.erb
724
+ - config/initializers/friendly_id.rb
724
725
  - config/locales/en.yml
725
726
  - config/routes.rb
726
727
  - db/migrate/20160728230720_create_phcmemberspro_directory_categories.rb