vesr 0.12.5 → 0.12.6
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/esr_file.rb +4 -0
- data/app/views/esr_files/_list.html.haml +0 -4
- data/lib/vesr/version.rb +1 -1
- metadata +4 -4
data/app/models/esr_file.rb
CHANGED
@@ -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
|
data/lib/vesr/version.rb
CHANGED
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:
|
4
|
+
hash: 35
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 12
|
9
|
-
-
|
10
|
-
version: 0.12.
|
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-
|
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.
|