Sha256: ef445f3069d35ac3bdd7d0b8edf0c7c5b4299791865f63f20c79e2b66d646141

Contents?: true

Size: 554 Bytes

Versions: 5

Compression:

Stored size: 554 Bytes

Contents

# encoding: UTF-8
module AlchemyCrm
  module Admin
    class ContactGroupsController < AlchemyCrm::Admin::BaseController

      before_filter :load_additional_data, :only => [:new, :edit]

      def add_filter
        @contact_group = ContactGroup.find(params[:contact_group_id])
        @filter = @contact_group.filters.build
        @count = @contact_group.filters.length - 1
      end

    private

      def load_additional_data
        @contacts = Contact.all
        @tags = ActsAsTaggableOn::Tag.order("name ASC").all
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alchemy_crm-2.0.5 app/controllers/alchemy_crm/admin/contact_groups_controller.rb
alchemy_crm-2.0.4.1 app/controllers/alchemy_crm/admin/contact_groups_controller.rb
alchemy_crm-2.1.0a app/controllers/alchemy_crm/admin/contact_groups_controller.rb
alchemy_crm-2.0.3 app/controllers/alchemy_crm/admin/contact_groups_controller.rb
alchemy_crm-2.0.2 app/controllers/alchemy_crm/admin/contact_groups_controller.rb