<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -8,10 +8,10 @@ module ActiveAttributes #:nodoc:
     
     def attr_order(*attributes)
       class &lt;&lt; self
-        attr_accessor :original_ordered_attributes
+        attr_accessor :default_ordered_attributes
 
-        def ordered_attributes(custom_attributes = nil)
-          ordered_attributes = custom_attributes || self.original_ordered_attributes
+        def ordered_attributes(*custom_attributes)
+          ordered_attributes = custom_attributes.empty? ? self.default_ordered_attributes : custom_attributes.flatten
           attributes = []
           ordered_attributes.each do |attribute|
             if self.respond_to?(:attribute_groups) &amp;&amp; childs = self.attribute_groups[attribute]
@@ -24,7 +24,7 @@ module ActiveAttributes #:nodoc:
         end
       end
 
-      self.original_ordered_attributes = attributes
+      self.default_ordered_attributes = attributes
       
     end
     </diff>
      <filename>lib/ordinary_attributes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -30,9 +30,13 @@ describe Company, &quot;.ordered_attributes&quot; do
      Company.ordered_attributes.should == [:name, :street, :zip, :city]
    end
    
-   it &quot;should return custom attributes&quot; do
+   it &quot;should return custom attributes, when passed as array&quot; do
      Company.ordered_attributes([:street, :zip, :city]).should == [:street, :zip, :city]
    end
+   
+   it &quot;should return custom attributes, when passed as arguments&quot; do
+     Company.ordered_attributes(:street, :zip, :city).should == [:street, :zip, :city]
+   end
 
 end
 
@@ -62,8 +66,12 @@ describe Person, &quot;.ordered_attributes with group in group&quot; do
      Person.ordered_attributes([:address]).should == [:street, :zip, :city]
    end
    
-   it &quot;should return group in group attributes&quot; do
+   it &quot;should return group in group attributes, when passed as array&quot; do
      Person.ordered_attributes([:all]).should == [:street, :zip, :city, :name]
    end
+   
+   it &quot;should return group in group attributes,  when passed as argument&quot; do
+     Person.ordered_attributes(:all).should == [:street, :zip, :city, :name]
+   end
 
 end
\ No newline at end of file</diff>
      <filename>spec/attr_order_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>spec/debug.log</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>aea10859dfeec95e5560147914c7e1817c16d0e6</id>
    </parent>
  </parents>
  <author>
    <name>Steffen Hiller</name>
    <email>shiller@local.(none)</email>
  </author>
  <url>http://github.com/steffen/ordered_attributes/commit/8812450365ca0cb2800648f06129b1ad62b20d26</url>
  <id>8812450365ca0cb2800648f06129b1ad62b20d26</id>
  <committed-date>2008-04-29T07:17:40-07:00</committed-date>
  <authored-date>2008-04-29T07:17:40-07:00</authored-date>
  <message>Added feature that allows passing custom attributes as arguments instead as an array. Also added .gitignore file to ignore spec/debug.log</message>
  <tree>7acd9874063eebe58b072cf851c519b9c65d6074</tree>
  <committer>
    <name>Steffen Hiller</name>
    <email>shiller@local.(none)</email>
  </committer>
</commit>
