pose 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,7 +52,7 @@ module Pose
52
52
  # Load the results by id.
53
53
  {}.tap do |result|
54
54
  result_classes_and_ids.each do |class_name, ids|
55
- result_class = Kernel.const_get class_name
55
+ result_class = class_name.constantize
56
56
 
57
57
  if ids.size == 0
58
58
  # Handle no results.
data/lib/pose/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pose
2
- VERSION = "1.3.2"
2
+ VERSION = "1.3.3"
3
3
  end
@@ -20,7 +20,7 @@ namespace :pose do
20
20
 
21
21
  desc "Removes the search index for all instances of the given classes."
22
22
  task :remove, [:class_name] => :environment do |t, args|
23
- clazz = Kernel.const_get args.class_name
23
+ clazz = args.class_name.constantize
24
24
  PoseAssignment.cleanup_class_index clazz
25
25
  puts "Search index for class #{clazz.name} deleted.\n\n"
26
26
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pose
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.3.2
5
+ version: 1.3.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kevin Goslar