Skip to content

Commit 2fa8d7a

Browse files
committed
Actually fix bug that was supposed to be fixed last patch
1 parent f008275 commit 2fa8d7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/authoreyes/helpers/in_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def filter_resource_access(options = {})
3838
ActionController::Metal.send(:define_method, :authorization_object) do
3939
if params[:id].present?
4040
begin
41-
controller_name.singularize.camelcase.capitalize.constantize.find(params[:id])
41+
controller_name.singularize.camelcase.constantize.find(params[:id])
4242
rescue NameError
4343
logger.warn '[Authoreyes] Could not interpolate object!'
4444
end

lib/authoreyes/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Authoreyes
2-
VERSION = '0.2.3'.freeze
2+
VERSION = '0.2.4'.freeze
33
end

0 commit comments

Comments
 (0)