rails-canhaz 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,8 @@ require 'active_record'
2
2
 
3
3
  class CanHazPermission < ActiveRecord::Base
4
4
 
5
+ attr_accessible :csubject_id, :csubject_type, :cobject_type, :cobject_id, :permission_name
6
+
5
7
  validates :cobject_id, :uniqueness => {:scope => [:permission_name, :csubject_id]}
6
8
 
7
9
  # Gets the permission row between two objects
data/rails-canhaz.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rails-canhaz'
3
- s.version = '1.0.0'
4
- s.date = '2012-06-05'
3
+ s.version = '1.0.1'
4
+ s.date = '2012-06-19'
5
5
  s.summary = "A simple gem for managing permissions between rails models"
6
6
  s.description = "A simple gem for managing permissions between rails models"
7
7
  s.authors = ["Adrien Siami (Intrepidd)"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-canhaz
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-05 00:00:00.000000000 Z
12
+ date: 2012-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord