Skip to content

Commit be45699

Browse files
small fix
1 parent 6e4fb52 commit be45699

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,13 @@ https://gist.github.com/ivanvanderbyl/4560416
257257

258258
```ruby
259259
class ApplicationController < ActionController::Base
260-
helper_method :current_permission_json
260+
helper_method :current_permission_json
261261

262-
delegate :can_update, :can_delete, :can_manage, to: :current_permission
262+
delegate :can_update, :can_delete, :can_manage, to: :current_permission
263263

264-
def current_permission_json
265-
UserSerializer.new([can_update, can_delete, can_manage], :scope => current_user.role, :root => false).to_json
266-
end
264+
def current_permission_json
265+
UserSerializer.new([can_update, can_delete, can_manage], :scope => current_user.role, :root => false).to_json
266+
end
267267
end
268268

269269
class UserSerializer < ActiveModel::Serializer

0 commit comments

Comments
 (0)