<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -78,7 +78,7 @@ module Lipsiadmin
             attributes.merge!(:attachment_definitions =&gt; self.class.attachment_definitions[name])
             
             # We need to add the new attacher_name
-            attributes.merge!(:attacher_name =&gt; name.to_s) if columns.collect(&amp;:name).include?(&quot;attacher_name&quot;)
+            attributes.merge!(:attacher_name =&gt; name.to_s) if self.class.columns.collect(&amp;:name).include?(&quot;attacher_name&quot;)
             
             if file_column = self.send(name)
               file_column.update_attributes(attributes)
@@ -142,7 +142,7 @@ module Lipsiadmin
               next if attribute[&quot;file&quot;].blank?
               attribute.merge!(:attachment_definitions =&gt; self.class.attachment_definitions[name])
               # We need to add the new attacher_name
-              attribute.merge!(:attacher_name =&gt; name.to_s) if columns.collect(&amp;:name).include?(&quot;attacher_name&quot;)
+              attribute.merge!(:attacher_name =&gt; name.to_s) if self.class.columns.collect(&amp;:name).include?(&quot;attacher_name&quot;)
               self.send(name).build(attribute)
             end
 </diff>
      <filename>lib/data_base/attachment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -24,8 +24,8 @@ namespace :lipsiadmin do
         end
       end
     
-      desc &quot;Updated the current models locales&quot;
-      task :models do
+      desc &quot;Updated the current models locales. Use LANGS=en,it,cz&quot;
+      task :models =&gt; :environment do
         langs = ENV['LANGS'] ? ENV['LANGS'].split(&quot;,&quot;) : [:en]
         models = Dir[&quot;#{RAILS_ROOT}/app/models/*&quot;].collect { |model| File.basename(model, &quot;.rb&quot;) }
 
@@ -48,7 +48,7 @@ namespace :lipsiadmin do
               columns.each do |c|
                 locale += &quot;        #{c}: #{klass.human_attribute_name(c)}&quot; unless locale.include?(&quot;#{c}:&quot;)
               end
-              print &quot;#{lang} already exist ...&quot;; $stdout.flush
+              print &quot;#{lang} already exist ... &quot;; $stdout.flush
               # Do some ere
             else
               locale     = &quot;#{lang}:&quot; + &quot;\n&quot; +
@@ -58,9 +58,9 @@ namespace :lipsiadmin do
                            &quot;    attributes:&quot; + &quot;\n&quot; +
                            &quot;      #{model}:&quot; + &quot;\n&quot; +
                            columns.collect { |c| &quot;        #{c}: #{klass.human_attribute_name(c)}&quot; }.join(&quot;\n&quot;)
+              print &quot;#{lang} created new one ... &quot;; $stdout.flush
             end
             File.open(filename, &quot;w&quot;) { |f| f.puts locale }
-            print &quot;... #{lang} created new one&quot;; $stdout.flush
           end
           puts
         end</diff>
      <filename>tasks/lipsiadmin_tasks.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8b8aba09fef261c70f83e7fb8639380cf1204888</id>
    </parent>
  </parents>
  <author>
    <name>Davide D'Agostino</name>
    <email>DAddYE@DAddYE.local</email>
  </author>
  <url>http://github.com/Lipsiasoft/lipsiadmin/commit/d814a491a7db6d6f8f84fa10fba0672d779425c5</url>
  <id>d814a491a7db6d6f8f84fa10fba0672d779425c5</id>
  <committed-date>2009-05-21T01:58:53-07:00</committed-date>
  <authored-date>2009-05-21T01:58:53-07:00</authored-date>
  <message>* Fixed model translation task
* Fixed multiattachment models</message>
  <tree>b351cd1b99d300e025f7ae49e4d142b894abb3b3</tree>
  <committer>
    <name>Davide D'Agostino</name>
    <email>DAddYE@DAddYE.local</email>
  </committer>
</commit>
