Sha256: ce465f00c30f567ee14014bd1556346fbc59c8bb40ff1cad4d8efb30126c0001

Contents?: true

Size: 527 Bytes

Versions: 4

Compression:

Stored size: 527 Bytes

Contents

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
class List < ActiveRecord::Base
  validates_presence_of :name

  # Parses the controller from the url
  def controller
    (url || "").sub(/^\//,'').split(/\/|\?/).first
  end
  ActiveSupport.run_load_hooks(:fat_free_crm_list, self)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fat_free_crm-0.12.3 app/models/list.rb
fat_free_crm-0.12.2 app/models/list.rb
fat_free_crm-0.12.1 app/models/list.rb
fat_free_crm-0.12.0 app/models/list.rb