<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -46,7 +46,7 @@ class Member::Depot::FilesController &lt; Member::BaseController
     @file.father = father if father &amp;&amp; father.user == current_user
  
     respond_to do |wants|
-      if @file.save!
+      if @file.save
         wants.html do
           flash[:ok] = I18n.t('tog_depot.member.file_created') 
           redirect_to member_depot_file_path(@file)</diff>
      <filename>app/controllers/member/depot/files_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -23,8 +23,7 @@ class Depot::File &lt; ActiveRecord::Base
     :url =&gt; &quot;/system/:class/:attachment/:id/:style_:basename.:extension&quot;,
   }.merge(Tog::Plugins.storage_options)
       
-  validates_attachment_size :file, :message =&gt; I18n.t('tog_depot.model.validations.file_size'),
-    :less_than =&gt; Tog::Plugins.settings(:tog_depot, &quot;file.max_size_file_kb&quot;).to_i.kilobytes
+  validates_attachment_size :file, :message =&gt; I18n.t('tog_depot.model.validations.file_size', :file_size =&gt; Tog::Plugins.settings(:tog_depot, &quot;file.max_size_file_kb&quot;)), :less_than =&gt; Tog::Plugins.settings(:tog_depot, &quot;file.max_size_file_kb&quot;).to_i.kilobytes
 
   attr_accessible :name, :description, :folder, :tag_list, :privacy, :downloads, :file
   validates_presence_of :name  </diff>
      <filename>app/models/depot/file.rb</filename>
    </modified>
    <modified>
      <diff>@@ -31,4 +31,6 @@ en:
       owner: Onwer
       date: Date
       size: Size
-      downloads: Downloads      
\ No newline at end of file
+      downloads: Downloads
+      validations:
+        file_size: File too big. It must be &lt; {{file_size}} KB  
\ No newline at end of file</diff>
      <filename>locale/tog_depot.yml</filename>
    </modified>
    <modified>
      <diff>@@ -31,4 +31,6 @@ es:
       owner: Propietario
       date: Fecha
       size: Tama&#241;o
-      downloads: Descargas
\ No newline at end of file
+      downloads: Descargas
+      validations:
+        file_size: demasiado grande. Tiene que ser &lt; {{file_size}} KB
\ No newline at end of file</diff>
      <filename>locale/tog_depot_es.yml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>733b814323a12887f02016d9b1082bbb393d17b4</id>
    </parent>
  </parents>
  <author>
    <name>Alberto Molpeceres</name>
    <email>alberto.molpeceres@gmail.com</email>
  </author>
  <url>http://github.com/molpe/tog_depot/commit/57075fe666b45e4cc1d1acd1bbe2340428998334</url>
  <id>57075fe666b45e4cc1d1acd1bbe2340428998334</id>
  <committed-date>2009-06-02T03:47:29-07:00</committed-date>
  <authored-date>2009-06-02T03:47:29-07:00</authored-date>
  <message>chencking file size and showing errors properly. Thanks to Balint Erdi</message>
  <tree>f930d69ff7cac29c0ee6f3188d5adee898b12e52</tree>
  <committer>
    <name>Alberto Molpeceres</name>
    <email>alberto.molpeceres@gmail.com</email>
  </committer>
</commit>
