ixtlan 0.4.0.pre → 0.4.0.pre2

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.
data/lib/ixtlan/guard.rb CHANGED
@@ -88,8 +88,8 @@ module Ixtlan
88
88
 
89
89
  def self.export_xml
90
90
  repository(:guard_memory) do
91
- role_const = Object.full_const_get(Models::ROLE)
92
- permission_const = Object.full_const_get(Models::PERMISSION)
91
+ role_const = Models::Role
92
+ permission_const = Models::Permission
93
93
  root = role_const.create(:name => @@superuser)
94
94
  @@map.each do |controller, actions|
95
95
  actions.each do |action, roles|
@@ -88,9 +88,9 @@ module Ixtlan
88
88
 
89
89
  model.property :version, Integer, :required => false
90
90
 
91
- model.property :current, Boolean, :required => true, :auto_validation => false
91
+ model.property :current, ::DataMapper::Types::Boolean, :required => true, :auto_validation => false
92
92
 
93
- model.property :previous, Boolean, :required => true, :auto_validation => false
93
+ model.property :previous, ::DataMapper::Types::Boolean, :required => true, :auto_validation => false
94
94
 
95
95
  model.property :updated_at, DateTime, :required => true, :auto_validation => false
96
96
 
@@ -143,3 +143,4 @@ EOS
143
143
  end
144
144
  end
145
145
  end
146
+ end
@@ -13,7 +13,7 @@ module Ixtlan
13
13
 
14
14
  property :action, String, :format => /^[a-zA-Z0-9_.]*$/, :key => true
15
15
 
16
- has n, :roles, :model => Models::ROLE
16
+ has n, :roles, :model => Models::Role
17
17
 
18
18
  if protected_instance_methods.find {|m| m == 'to_x'}.nil?
19
19
 
@@ -1,3 +1,3 @@
1
1
  class Ixtlan
2
- VERSION = '0.4.0.pre'.freeze
2
+ VERSION = '0.4.0.pre2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ixtlan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.pre
4
+ version: 0.4.0.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mkristian