address_concern 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Readme.md +8 -10
- data/address_concern.gemspec +0 -1
- data/lib/address_concern/version.rb +1 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de8b741d8cd001b4e7f4a8e12895aa623bccaabfa98dbdb41886bc25ab74e8bf
|
4
|
+
data.tar.gz: 96b1e6fb186f3941ab8db185b79ad6a56be99868b9950b21742869211b4e2530
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a5ca29908ad512f492e510c90a1fc5c1e4ce38a3d193a9156551415da85f503bced92538edf6306615c1884bfadcae9eacffd1bb15204d4aae6cc1e1fc444c4
|
7
|
+
data.tar.gz: 833b6c049415afab41e1ba8fb44cf73e69cd9392b6a9b70a0410a68f203f749f4dfd18011c6b52b711e56e3db209365be88d5e7b87d5c69c677485698e721c7f
|
data/Readme.md
CHANGED
@@ -8,16 +8,7 @@ Add `address_concern` to your `Gemfile`:
|
|
8
8
|
|
9
9
|
gem 'address_concern'
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
rails generate address_concern:install
|
14
|
-
rake db:migrate
|
15
|
-
|
16
|
-
You now have an `Address` model that you can use in your app just as if it were in your `app/models` directory.
|
17
|
-
|
18
|
-
# Usage
|
19
|
-
|
20
|
-
## Base usage
|
11
|
+
Include the `AddressConcern::Address` concern in your model:
|
21
12
|
|
22
13
|
```ruby
|
23
14
|
class Address < ApplicationRecord
|
@@ -25,6 +16,13 @@ class Address < ApplicationRecord
|
|
25
16
|
end
|
26
17
|
```
|
27
18
|
|
19
|
+
Then run the generator to create your addresses table:
|
20
|
+
|
21
|
+
rails generate address_concern:install
|
22
|
+
rake db:migrate
|
23
|
+
|
24
|
+
# Usage
|
25
|
+
|
28
26
|
## `belongs_to_address`
|
29
27
|
|
30
28
|
`AddressConcern::AddressAssociations` is automatically included into `ActiveRecord::Base` and
|
data/address_concern.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: address_concern
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Campbell
|
@@ -25,20 +25,6 @@ dependencies:
|
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: cucumber
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - ">="
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '0'
|
35
|
-
type: :runtime
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - ">="
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '0'
|
42
28
|
- !ruby/object:Gem::Dependency
|
43
29
|
name: rails
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|