Sha256: 17f7fe9bcf951601e70f90c766ea048b5d226dde67393fbef6abe624930ffcfb

Contents?: true

Size: 371 Bytes

Versions: 6

Compression:

Stored size: 371 Bytes

Contents

class ActionController::Base
  class << self
    def inherited_with_acts_as_dashboard_include(child)
      inherited_without_acts_as_dashboard_include child

      child.send :include, ActsAsDashboard
    end

    alias_method_chain :inherited, :acts_as_dashboard_include
  end
end

module ActsAsDashboard
  def self.included(base)
    base.extend ClassMethods
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
acts_as_dashboard-0.4.1 lib/acts_as_dashboard.rb
acts_as_dashboard-0.4.0 lib/acts_as_dashboard.rb
acts_as_dashboard-0.3.3 lib/acts_as_dashboard.rb
acts_as_dashboard-0.3.2 lib/acts_as_dashboard.rb
acts_as_dashboard-0.3.0 lib/acts_as_dashboard.rb
acts_as_dashboard-0.1.0 lib/acts_as_dashboard.rb