lipsiadmin 5.0.0 → 5.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 2009-07-18
2
+ * Fixed a big problem that occours in Rails 2.3.2 with timezone active and caching class!
3
+
1
4
  2009-06-05
2
5
  * Dump to 5.0 Version
3
6
  * Support to ExtJs 3.0
@@ -80,9 +80,9 @@ module Lipsiadmin
80
80
  @allowed = []
81
81
  @denied = []
82
82
  @roles = roles
83
- @account = account
83
+ @account_id = account.is_a?(Account) ? account.id : account
84
84
  # Mantain backward compatibility
85
- yield(self, @account) rescue yield(self)
85
+ yield(self, Account.find(@account_id)) rescue yield(self)
86
86
  end
87
87
 
88
88
  # Create a new project module
@@ -112,7 +112,7 @@ module Lipsiadmin
112
112
 
113
113
  # Return true if current_account role is included in given roles
114
114
  def allowed?
115
- @roles.any? { |r| r.to_s.downcase == @account.role.downcase }
115
+ @roles.any? { |r| r.to_s.downcase == Account.find(@account_id).role.downcase }
116
116
  end
117
117
 
118
118
  # Return allowed actions/controllers
data/lib/version.rb CHANGED
@@ -2,7 +2,7 @@ module Lipsiadmin
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 5
4
4
  MINOR = 0
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lipsiadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davide D'Agostino
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-17 00:00:00 +02:00
12
+ date: 2009-07-18 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency