controller_resources 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDk0NGEzNzUyZTUzYTFlZTBjMzYyOWI3OTcxNDUwOWQyZTkxMDAwNw==
4
+ NTQ3MGFiNmFiMDExMjIxMGJlYWI5NDc3ZDQ0OTVhM2I1YzY5Y2U4Mg==
5
5
  data.tar.gz: !binary |-
6
- YTJjNzA0NTYzMTYzMjJmYmJmODM4MzU0OTVjNWE0MGZlNjZjMWVmNA==
6
+ NzQ3NGYwYTQ5N2IyOGM3MzJiOWZiNDVkZDE5ODRlNWQ1ODE4MjYyZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjU3YzgyNjEyOTc5YWUxMjJkOTRlZDBiYzUxM2MzZWYzZjkzZmY2ZjcwM2My
10
- OWFlZDQ5ZTZmODcyMTIzMDdlZTVhZGE5MGRkNWRlOWZhYTk4ZjM5ODI5ZDM5
11
- MzMzOGUxNGNiMmExNDczODNhMDM1YjdmZTZjMzRhYzQxMDRhOTI=
9
+ MmFmN2NjM2MwMThhYmViMWM0YzMxNDc0ZmU1NTM5ZTQ3MWIwNWFkY2M3NmQ5
10
+ YmI4NDM3ZWViNTFjOWEyY2JiMWM4OWQzM2I4YTBhZDEyNWFjZjA2OGExMzEx
11
+ YTdhNWU5Y2Q4NGJhZDczMmMxYWU4OWEyZDJkYzdhY2RkMjg3ODU=
12
12
  data.tar.gz: !binary |-
13
- ZGIxZTcyMTY3OWRmMzY3OGRlOWU3ZjdmZmVlZWJlMmM2MjU4YmUyMzhlNTA3
14
- YjY4OTA2YTM0ZTI3Mjc2OTc3ZDMyMzBiMzk4ZTJiMDlkODIxY2QxNTNmYTE1
15
- MzQxMDdkZjQ2NTgyZWVhNGJmYzI2YThhMWRjYzQ4YThlYzQ5M2M=
13
+ YThiOTdkZTZhODUyYzc2ZGY1MTljYmRkMDMwY2YwODcyNThhY2I4NTc1MTQz
14
+ YjEyYWY2ZDA1ZWZmMmJkZTRkN2U5ODY1NTgwOGFiOTQ0ZmI5ZTRjNThhMmUy
15
+ ZDExOTYyNzY5ZWE5YjdmY2FjNmFlYjJlZGY0MGM3Y2VmYTM2NTk=
@@ -10,21 +10,11 @@ addons:
10
10
  repo_token:
11
11
  secure: XGGGnkqnHKX54WPKNy6QCVuGLmZbApKLCerCuDAMq+Vgu8pCULJsWOOKUX2o5cAhCze5UC1gMic+05MYmUTrD3n9J+SZhoZi0LKEzZbilsJu02AUZSRfXbp4jtGnApT3IUzfD2tPoL1my00s1PJq5D2eDyjCLGtDiuwk/G8Hdpc=
12
12
  deploy:
13
- - provider: rubygems
14
- skip_cleanup: true
15
- api_key:
16
- secure: Ss+mExNaQHwVyJ0u5cN/BrrVEPZPUdojUxbVj5xa4fjT8OCmaeXY6DM24L1dDpysNLlExKzNVzK6JZNl1KFE03U6Be+S8sr5yJ3hlhPIqShA21+riiC/yeEnNw9oWv+EDDw2CD5TImF3u4YmGJohVdpCGl2U3tlRP5Kchz1vYjw=
17
- on:
18
- repo: tubbo/controller_resources
19
- tags: true
20
- rvm: 2.2.2
21
- - provider: releases
22
- before_deploy: bundle exec rake ci:package
23
- skip_cleanup: true
24
- api_key:
25
- secure: d3ezN68q4noQdeL7cGqHZiHP5Yhn27Vd0CENAPjf8HsatgvRSUne79Xi0RLABI/C5t/zAknhKUix8ecxweH+/fg2uG15wKjEeHf5cXZu5nWi/lZhBU2xnrNuhi/JKdaeC9q4K/1N5qIVSCyNIGZ1E4NGyfn3+6HSlF5KwoTc79Q=
26
- file: "pkg/controller_resources.gem"
27
- on:
28
- repo: tubbo/controller_resources
29
- tags: true
30
- rvm: 2.2.2
13
+ provider: rubygems
14
+ skip_cleanup: true
15
+ api_key:
16
+ secure: Ss+mExNaQHwVyJ0u5cN/BrrVEPZPUdojUxbVj5xa4fjT8OCmaeXY6DM24L1dDpysNLlExKzNVzK6JZNl1KFE03U6Be+S8sr5yJ3hlhPIqShA21+riiC/yeEnNw9oWv+EDDw2CD5TImF3u4YmGJohVdpCGl2U3tlRP5Kchz1vYjw=
17
+ on:
18
+ repo: tubbo/controller_resources
19
+ tags: true
20
+ rvm: 2.2.2
@@ -33,19 +33,19 @@ module ControllerResources
33
33
  # Given name of the model as supplied to the +resource+ directive.
34
34
  #
35
35
  # @attr_accessor [Symbol]
36
- cattr_accessor :model_name
36
+ class_attribute :model_name
37
37
 
38
38
  # Collection name computed by pluralizing the given model name.
39
39
  #
40
40
  # @attr_accessor [Symbol]
41
- cattr_accessor :collection_name
41
+ class_attribute :collection_name
42
42
 
43
43
  # A collection of arguments supplied to +StrongParameters#permit+
44
44
  # that is used in the +edit_params+ method to easily define
45
45
  # attributes which need to be whitelisted for mass assignment.
46
46
  #
47
47
  # @attr_accessor [Array]
48
- cattr_accessor :params_to_permit
48
+ class_attribute :params_to_permit
49
49
 
50
50
  # Configures +DecentExposure+ to use the +edit_params+ method
51
51
  # defined by this module as the default attributes for mass
@@ -1,4 +1,4 @@
1
1
  module ControllerResources
2
2
  # Current version of this gem.
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: controller_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Scott
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-19 00:00:00.000000000 Z
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler