Displaying 3 results from an estimated 3 matches for "macromethod".
Did you mean:
macromethods
2006 Jun 21
1
Plugin Panic! - no accessing a model''s class methods?
...ss).
full plugin contents follow.
*whimper* help?
--
Matthew Beale :: 607 227 0871
Resume & Portfolio @ http://madhatted.com
# ActsAsCopyable
module FakeActiveRecord
module Acts #:nodoc:
module Copyable #:nodoc:
def self.append_features(base)
super
base.extend(MacroMethods)
end
# declare the class level helper methods which
# will load the relevant instance methods
# defined below when invoked
module MacroMethods
def acts_as_copyable
include FakeActiveRecord::Acts::Copyable::InstanceMethods
end
end...
2005 Dec 02
43
ANN: acts_as_ferret
....rb
# CODE for acts_as_ferret.rb
require ''active_record''
require ''ferret''
module FerretMixin #(was: Foo)
module Acts #:nodoc:
module ARFerret #:nodoc:
def self.append_features(base)
super
base.extend(MacroMethods)
end
# declare the class level helper methods
# which will load the relevant instance methods defined below when invoked
module MacroMethods
def acts_as_ferret
extend FerretMixin::Acts::ARFerret::ClassMethods
class...
2005 Dec 02
43
ANN: acts_as_ferret
....rb
# CODE for acts_as_ferret.rb
require ''active_record''
require ''ferret''
module FerretMixin #(was: Foo)
module Acts #:nodoc:
module ARFerret #:nodoc:
def self.append_features(base)
super
base.extend(MacroMethods)
end
# declare the class level helper methods
# which will load the relevant instance methods defined below when invoked
module MacroMethods
def acts_as_ferret
extend FerretMixin::Acts::ARFerret::ClassMethods
class...