Method: Tiun::Auth#model_name
- Defined in:
- lib/tiun/auth.rb
#model_name ⇒ Object
28 29 30 |
# File 'lib/tiun/auth.rb', line 28 def model_name @_model_name ||= self.class.to_s.gsub(/.*::/, "").gsub("Controller", "").singularize end |
28 29 30 |
# File 'lib/tiun/auth.rb', line 28 def model_name @_model_name ||= self.class.to_s.gsub(/.*::/, "").gsub("Controller", "").singularize end |