Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

. another ruby 1.8 fix

  • Loading branch information...
commit 869a03c51dbc84cef73a1bb57a0ab7c37628818e 1 parent 375ae9d
Kaspar Schiess authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  lib/floor_manager/employee/dsl.rb
6  lib/floor_manager/employee/dsl.rb
@@ -8,10 +8,10 @@ class DSL < BlankSlate
8 8
     #
9 9
     class AssocProxy < Struct.new(:employee, :field, :dsl)
10 10
       def set(*create_args)
11  
-        dsl._add_attribute FloorManager::Employee::AttributeAction::AssocSet.new(field, create_args)
  11
+        dsl._add_attribute AttributeAction::AssocSet.new(field, create_args)
12 12
       end
13 13
       def append(*create_args)
14  
-        dsl._add_attribute FloorManager::Employee::AttributeAction::AssocAppend.new(field, create_args)
  14
+        dsl._add_attribute AttributeAction::AssocAppend.new(field, create_args)
15 15
       end
16 16
     end
17 17
 
@@ -25,7 +25,7 @@ def initialize(employee, filter=:none, &block)
25 25
     # Register actions to be taken if the object gets saved (floor#create)
26 26
     #
27 27
     def after_create(&block)
28  
-      self.class.new(@employee, :after_create, &block)
  28
+      FloorManager::Employee::DSL.new(@employee, :after_create, &block)
29 29
     end
30 30
       
31 31
     # This method missing handles several magic incantations: 

0 notes on commit 869a03c

Please sign in to comment.
Something went wrong with that request. Please try again.