module LybSidebar
  module Controller
    extend ActiveSupport::Concern
    
    included do
      class_inheritable_accessor :sidebars
    end

    module ClassMethods
      def sidebar(options = true)
        if options.is_a? TrueClass
          self.sidebars = ["#{controller_name}/sidebar"]
        end
      end
    end
  end
end

module LybSidebar
  module Controller
    extend ActiveSupport::Concern
    
    included do
      class_attribute :sidebars
    end

    module ClassMethods
      def sidebar(options = true)
        if options.is_a? TrueClass
          self.sidebars = ["#{controller_name}/sidebar"]
        end
      end
    end
  end
end

Use class_attribute instead of deprecated class_inheritable_accessor.
Use class_attribute instead of deprecated class_inheritable_accessor.
