Module: Authorization::Fbuser::V1::User
- Defined in:
- lib/generators/fbuser/authorizations/templates/user.rb
Class Method Summary collapse
- .create?(user_params, tokenUser) ⇒ Boolean
- .destroy?(user, tokenUser) ⇒ Boolean
- .include_created_at?(current_user, user_object, options) ⇒ Boolean
- .include_fb_user_id?(current_user, user_object, options) ⇒ Boolean
-
.include_id?(current_user, user_object, options) ⇒ Boolean
Used in the serializer.
- .include_updated_at?(current_user, user_object, options) ⇒ Boolean
- .include_username?(current_user, user_object, options) ⇒ Boolean
-
.index?(tokenUser) ⇒ Boolean
Used in the controller.
- .show?(user, tokenUser) ⇒ Boolean
- .update?(user, user_params, tokenUser) ⇒ Boolean
Class Method Details
.create?(user_params, tokenUser) ⇒ Boolean
16 17 18 |
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 16 def self.create?(user_params,tokenUser) return true end |
.destroy?(user, tokenUser) ⇒ Boolean
24 25 26 |
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 24 def self.destroy?(user,tokenUser) return true end |
.include_created_at?(current_user, user_object, options) ⇒ Boolean
49 50 51 52 53 |
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 49 def self.include_created_at?(current_user,user_object,) action = [:url_options][:_recall][:action] controller = [:url_options][:_recall][:controller] return true end |
.include_fb_user_id?(current_user, user_object, options) ⇒ Boolean
43 44 45 46 47 |
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 43 def self.include_fb_user_id?(current_user,user_object,) action = [:url_options][:_recall][:action] controller = [:url_options][:_recall][:controller] return true end |
.include_id?(current_user, user_object, options) ⇒ Boolean
Used in the serializer
30 31 32 33 34 |
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 30 def self.include_id?(current_user,user_object,) action = [:url_options][:_recall][:action] controller = [:url_options][:_recall][:controller] return true end |
.include_updated_at?(current_user, user_object, options) ⇒ Boolean
55 56 57 58 59 |
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 55 def self.include_updated_at?(current_user,user_object,) action = [:url_options][:_recall][:action] controller = [:url_options][:_recall][:controller] return true end |
.include_username?(current_user, user_object, options) ⇒ Boolean
37 38 39 40 41 |
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 37 def self.include_username?(current_user,user_object,) action = [:url_options][:_recall][:action] controller = [:url_options][:_recall][:controller] return true end |
.index?(tokenUser) ⇒ Boolean
Used in the controller
8 9 10 |
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 8 def self.index?(tokenUser) return true end |
.show?(user, tokenUser) ⇒ Boolean
12 13 14 |
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 12 def self.show?(user,tokenUser) return true end |
.update?(user, user_params, tokenUser) ⇒ Boolean
20 21 22 |
# File 'lib/generators/fbuser/authorizations/templates/user.rb', line 20 def self.update?(user,user_params,tokenUser) return true end |