permissionable 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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac8b647c4c845648114c06ce701efeaf427a6c66
4
- data.tar.gz: 435c2593102b61b7ec1c0ab917ae76584e1885cb
3
+ metadata.gz: 65c683e2b6a92a99c88d7c8914797d2e03345ec9
4
+ data.tar.gz: 97735819e09708dfdcb62c2fc62a35528194b733
5
5
  SHA512:
6
- metadata.gz: 4995603b3f0610a7dea21aa64d7a42041de7647f4afcfc885e7d78162454b24dce81d13e78e2cc0988b3ba506b3b12f76f719c715feef7f6be51b05553d65a96
7
- data.tar.gz: 233663404592bc6c69ae5f9f9566f4b4dde70f6ae783c3b2e672e222be38906ff31e1d9286ba9767a21f544fc1c906c36484c7ff6989a8368fa148e3c0720b9e
6
+ metadata.gz: dea2db4e91d2654cf48e6f7f5eb28e184e75554b4cc1c2b0ff39426bb9e9254b38206d628b96994c8d139e585e44f9feba05ea3419fc6ed74fc83511d5a63d18
7
+ data.tar.gz: 30cf805a817a8ef758588554f0eeb12c26b2dd0618ee8c5ef5bd522fadf997f07f47fba8f8810f65a7975ce55f51f72861e46c68026a73f139067de72f94285d
data/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # permissionable
2
2
  ## Installation
3
- TODO
3
+
4
+ Permissionable is distributed as a gem. To install, just add this line to your Gemfile:
5
+ `gem 'permissionable', '~> 0.1.1'`
6
+
4
7
 
5
8
  ## Usage
6
9
  ### Hooking up your model with permissionable super powers
@@ -21,7 +24,7 @@ class AddPermissionsToResource < ActiveRecord::Migration
21
24
  end
22
25
  ```
23
26
 
24
- If your're not using AR can also implement your own `#read_attribute` and `#write_attribute` methods to handle `read_attribute(:permissions)` and `write_attribute(:permissions, permissions_integer)`
27
+ If your're not using AR can also implement your own `#read_attribute` and `#update_column` methods to handle `read_attribute(:permissions)` and `update_column(:permissions, permissions_integer)`
25
28
 
26
29
  ### Working with permissions
27
30
  #### Check for permissions
@@ -68,8 +68,8 @@ module Permissionable
68
68
  end
69
69
 
70
70
  def sync_with_owner
71
- if @owner.respond_to?(:write_attribute)
72
- @owner.write_attribute(:permission, @permission_integer)
71
+ if @owner.respond_to?(:update_column)
72
+ @owner.update_column(:permission, @permission_integer)
73
73
  end
74
74
  end
75
75
 
@@ -1,3 +1,3 @@
1
1
  module Permissionable
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: permissionable
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
  - Robert Falkén
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-06 00:00:00.000000000 Z
11
+ date: 2015-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler