Skip to content

Commit

Permalink
. another ruby 1.8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kschiess committed Jun 4, 2010
1 parent 375ae9d commit 869a03c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/floor_manager/employee/dsl.rb
Expand Up @@ -8,10 +8,10 @@ class DSL < BlankSlate
#
class AssocProxy < Struct.new(:employee, :field, :dsl)
def set(*create_args)
dsl._add_attribute FloorManager::Employee::AttributeAction::AssocSet.new(field, create_args)
dsl._add_attribute AttributeAction::AssocSet.new(field, create_args)
end
def append(*create_args)
dsl._add_attribute FloorManager::Employee::AttributeAction::AssocAppend.new(field, create_args)
dsl._add_attribute AttributeAction::AssocAppend.new(field, create_args)
end
end

Expand All @@ -25,7 +25,7 @@ def initialize(employee, filter=:none, &block)
# Register actions to be taken if the object gets saved (floor#create)
#
def after_create(&block)
self.class.new(@employee, :after_create, &block)
FloorManager::Employee::DSL.new(@employee, :after_create, &block)
end

# This method missing handles several magic incantations:
Expand Down

0 comments on commit 869a03c

Please sign in to comment.