Method: Mobility::Plugin#included

Defined in:
lib/mobility/plugin.rb

#included(pluggable) ⇒ Object



94
95
96
97
98
99
# File 'lib/mobility/plugin.rb', line 94

def included(pluggable)
  if defined?(@default) && !pluggable.defaults.has_key?(name = Plugins.lookup_name(self))
    pluggable.defaults[name] = @default
  end
  super
end