Class: List
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- List
- Defined in:
- app/models/list.rb
Instance Method Summary collapse
-
#controller ⇒ Object
Parses the controller from the url.
Instance Method Details
#controller ⇒ Object
Parses the controller from the url
5 6 7 |
# File 'app/models/list.rb', line 5 def controller (url || "").sub(/^\//,'').split(/\/|\?/).first end |