vesr 0.12.5 → 0.12.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,13 @@
1
1
  class EsrFile < ActiveRecord::Base
2
+ # Default sorting
3
+ default_scope order('created_at DESC')
4
+
2
5
  # File upload
3
6
  mount_uploader :file, EsrFileUploader
4
7
 
5
8
  has_many :esr_records, :dependent => :destroy
6
9
 
10
+ # String
7
11
  def to_s(format = :default)
8
12
  case format
9
13
  when :long
@@ -9,7 +9,3 @@
9
9
  %th.action-links
10
10
  %tbody
11
11
  = render @esr_files
12
-
13
- %tfoot
14
- %tr#invoices_list_footer
15
- %th{:colspan => 5}= will_paginate @esr_files, :params => {:query => params[:query]}
data/lib/vesr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vesr
2
- VERSION = "0.12.5"
2
+ VERSION = "0.12.6"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vesr
3
3
  version: !ruby/object:Gem::Version
4
- hash: 37
4
+ hash: 35
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 12
9
- - 5
10
- version: 0.12.5
9
+ - 6
10
+ version: 0.12.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Simecek
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-07-06 00:00:00 Z
19
+ date: 2012-07-16 00:00:00 Z
20
20
  dependencies: []
21
21
 
22
22
  description: VESR provides support for ESR number calculations and gives ready to use Rails components.