Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

. another ruby 1.8 fix

  • Loading branch information...
commit 869a03c51dbc84cef73a1bb57a0ab7c37628818e 1 parent 375ae9d
@kschiess authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/floor_manager/employee/dsl.rb
View
6 lib/floor_manager/employee/dsl.rb
@@ -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
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.