SammyLin / redactor-rails

This repo is deprecated. Please check out official gem for Redactor 2. https://github.com/Redactor2/redactor2_rails
MIT License
389 stars 253 forks source link

Added ability to define the Devise User class. #49

Closed snooc closed 11 years ago

snooc commented 11 years ago

The filters and helpers are hard coded to use the User model. If you are using a model class anything else, the filters will fail.

Example:

# User.rb
authenticate_user!
current_user

# AdminUser.rb 
authenticate_admin_user!
current_admin_user

Instructions are at the bottom of the README.