Class: List
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- List
- Defined in:
- app/models/list.rb
Overview
Copyright © 2008-2013 Michael Dvorkin and contributors.
Fat Free CRM is freely distributable under the terms of MIT license. See MIT-LICENSE file or www.opensource.org/licenses/mit-license.php
Instance Method Summary collapse
-
#controller ⇒ Object
Parses the controller from the url.
Instance Method Details
#controller ⇒ Object
Parses the controller from the url
14 15 16 |
# File 'app/models/list.rb', line 14 def controller (url || "").sub(/\A\//, '').split(/\/|\?/).first end |