Sha256: 5b1f0d6f6dd2200d6b7f2f1e5746f4ec6e8c9fe487b511fd503d6b1062fe8510

Contents?: true

Size: 707 Bytes

Versions: 4

Compression:

Stored size: 707 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
#------------------------------------------------------------------------------
namespace :ffcrm do
  namespace :settings do

    desc "Clear settings from database (reset to default)"
    task :clear => :environment do
      Setting.delete_all
    end

    desc "Show current settings in the database"
    task :show => :environment do
      Setting.select('name').order('name').pluck('name').each do |name|
        puts "\n#{name}:\n  #{Setting.send(name).inspect}"
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 lib/tasks/ffcrm/settings.rake
fat_free_crm-0.13.5 lib/tasks/ffcrm/settings.rake
fat_free_crm-0.13.4 lib/tasks/ffcrm/settings.rake
fat_free_crm-0.13.3 lib/tasks/ffcrm/settings.rake