engines/adva_cms/lib/core_ext/module.rb
def include_into(*klasses)
    klasses.flatten!
    aliases = klasses.last.is_a?(Hash) ? klasses.pop : {}
    klasses.each do |klass|
      (@@class_mixins[klass] ||= []) << [name.to_s, aliases]
      @@class_mixins[klass].uniq!
    end
  end
# Specifies that this module should be included into the given classes when they are instantiated.
#
#   module FooMethods
#     include_into "Foo", "Bar"
#   end
#
# You can also specify a hash to have your module's methods alias_method_chained to the target
# class' methods.
#
#   module FooMethods
#      include_into "Foo", :method => :feature
#   end
#
# This will alias Foo#method to the newly included FooMethods#method_with_feature. The former
# method Foo#method will continue to be available as Foo#method_without_feature.
#
Specifies that this module should be included into the given classes when they are instantiated.

You can also specify a hash to have your module's methods alias_method_chained to the target
class' methods.

module FooMethods
include_into "Foo", :method => :feature
end

This will alias Foo#method to the newly included FooMethods#method_with_feature. The former
method Foo#method will continue to be available as Foo#method_without_feature.
Specifies that this module should be included into the given classes when they are instantiated . You can also specify a hash to have your module ' s methods alias_method_chained to the target class ' methods . module FooMethods include_into " Foo " : method = > : feature end This will alias Foo#method to the newly included FooMethods#method_with_feature . The former method Foo#method will continue to be available as Foo#method_without_feature .
def include_into(*klasses)
    klasses.flatten!
    aliases = klasses.last.is_a?(Hash) ? klasses.pop : {}
    klasses.each do |klass|
      (@@class_mixins[klass] ||= []) << [name.to_s, aliases]
      @@class_mixins[klass].uniq!
    end
  end
def include_into ( * klasses ) klasses . flatten! aliases = klasses . last . is_a? ( Hash ) ? klasses . pop : { } klasses . each do | klass | ( @@class_mixins [ klass ] ||= [ ] ) << [ name . to_s , aliases ] @@class_mixins [ klass ] . uniq! end end
Specifies that this module should be included into the given classes when they are instantiated.
Specifies that this module should be included into the given classes when they are instantiated .
klasses