tuersteher 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/tuersteher.rb +1 -0
  3. data/tuersteher.gemspec +1 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
data/lib/tuersteher.rb CHANGED
@@ -363,6 +363,7 @@ module Tuersteher
363
363
  end
364
364
 
365
365
  if @block
366
+ return false if model.instance_of?(Class) # kein Block-Call wenn Classe als model übergeben wurde
366
367
  unless @block.call(model, user)
367
368
  #Tuersteher::TLogger.logger.debug("#{to_s}.has_access? => false why block return false")
368
369
  return false
data/tuersteher.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tuersteher}
8
- s.version = "0.0.7"
8
+ s.version = "0.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bernd Ledig"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tuersteher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernd Ledig