ashisrai_
ashisrai_

Reputation: 6568

uninitialized constant ActiveSupport::Concern

I got below link to solve problem related to class and instance method. http://www.fakingfantastic.com/2010/09/20/concerning-yourself-with-active-support-concern/

module NotificationsHelper
  extend ActiveSupport::Concern

  module ClassMethods
    def my_class_method
      # ...
    end
  end

  module InstanceMethods
    def my_instance_method
      # ...
    end
  end
end

But I am getting uninitialized constant ActiveSupport::Concern error. I am using Rails 2.3.5 and Ruby 1.9.2p180

Upvotes: 3

Views: 1696

Answers (1)

Aditya Sanghi
Aditya Sanghi

Reputation: 13433

This module is only available in Rails 3 onwards

Upvotes: 5

Related Questions