devise_russian 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
| 
         @@ -53,10 +53,6 @@ class AuthenticationsController < DeviseController 
     | 
|
| 
       53 
53 
     | 
    
         | 
| 
       54 
54 
     | 
    
         
             
              protected
         
     | 
| 
       55 
55 
     | 
    
         | 
| 
       56 
     | 
    
         
            -
              def authenticate_user!
         
     | 
| 
       57 
     | 
    
         
            -
                permission_denied if current_user.nil?
         
     | 
| 
       58 
     | 
    
         
            -
              end
         
     | 
| 
       59 
     | 
    
         
            -
             
     | 
| 
       60 
56 
     | 
    
         
             
              # This is necessary since Rails 3.0.4
         
     | 
| 
       61 
57 
     | 
    
         
             
              # See https://github.com/intridea/omniauth/issues/185
         
     | 
| 
       62 
58 
     | 
    
         
             
              # and http://www.arailsdemo.com/posts/44
         
     | 
| 
         @@ -0,0 +1,15 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # coding: utf-8
         
     | 
| 
      
 2 
     | 
    
         
            +
            module DeviseRussian
         
     | 
| 
      
 3 
     | 
    
         
            +
              module Controllers
         
     | 
| 
      
 4 
     | 
    
         
            +
                module Base
         
     | 
| 
      
 5 
     | 
    
         
            +
                  def authenticate_user!
         
     | 
| 
      
 6 
     | 
    
         
            +
                    permission_denied if current_user.nil?
         
     | 
| 
      
 7 
     | 
    
         
            +
                  end
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
                  def permission_denied
         
     | 
| 
      
 10 
     | 
    
         
            +
                    flash[:error] = I18n.t(:permission_denied)
         
     | 
| 
      
 11 
     | 
    
         
            +
                    redirect_to devise_russian.new_user_session_url
         
     | 
| 
      
 12 
     | 
    
         
            +
                  end
         
     | 
| 
      
 13 
     | 
    
         
            +
                end
         
     | 
| 
      
 14 
     | 
    
         
            +
              end
         
     | 
| 
      
 15 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/devise_russian.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: devise_russian
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.23
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors:
         
     | 
| 
         @@ -212,6 +212,7 @@ files: 
     | 
|
| 
       212 
212 
     | 
    
         
             
            - config/routes.rb
         
     | 
| 
       213 
213 
     | 
    
         
             
            - devise_russian.gemspec
         
     | 
| 
       214 
214 
     | 
    
         
             
            - lib/devise_russian.rb
         
     | 
| 
      
 215 
     | 
    
         
            +
            - lib/devise_russian/controllers/base.rb
         
     | 
| 
       215 
216 
     | 
    
         
             
            - lib/devise_russian/engine.rb
         
     | 
| 
       216 
217 
     | 
    
         
             
            - lib/devise_russian/models/base.rb
         
     | 
| 
       217 
218 
     | 
    
         
             
            - lib/devise_russian/version.rb
         
     |