bhf 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -120,7 +120,7 @@ class Bhf::EntriesController < Bhf::ApplicationController
120
120
  end
121
121
 
122
122
  def load_object
123
- @object = @model.find(params[:id]) rescue nil
123
+ @object = @model.unscoped.find(params[:id]) rescue nil
124
124
  after_load
125
125
  end
126
126
 
@@ -140,7 +140,7 @@ class Bhf::EntriesController < Bhf::ApplicationController
140
140
 
141
141
  next if ids.blank?
142
142
 
143
- reflection.klass.find(ids).each do |relation_obj|
143
+ reflection.klass.unscoped.find(ids).each do |relation_obj|
144
144
  @object.send(relation) << relation_obj
145
145
  end
146
146
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bhf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
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: 2013-07-30 00:00:00.000000000 Z
12
+ date: 2013-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails