Module: SocialStream::Devise::Controllers::UserSignIn

Extended by:
ActiveSupport::Concern
Included in:
FrontpageController
Defined in:
lib/social_stream/devise/controllers/user_sign_in.rb

Instance Method Summary collapse

Instance Method Details

#devise_mappingObject



26
27
28
# File 'lib/social_stream/devise/controllers/user_sign_in.rb', line 26

def devise_mapping
  ::Devise.mappings[:user]
end

#resourceObject



14
15
16
# File 'lib/social_stream/devise/controllers/user_sign_in.rb', line 14

def resource
  @user
end

#resource_classObject



22
23
24
# File 'lib/social_stream/devise/controllers/user_sign_in.rb', line 22

def resource_class
  User
end

#resource_nameObject



18
19
20
# File 'lib/social_stream/devise/controllers/user_sign_in.rb', line 18

def resource_name
  :user
end

#sign_in_controller?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/social_stream/devise/controllers/user_sign_in.rb', line 30

def 
  true
end