enju_biblio 0.3.15 → 0.3.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/picture_file.rb +1 -1
- data/lib/enju_biblio/version.rb +1 -1
- data/spec/models/picture_file_spec.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14cf69a7672b13c89901dff244c8bdee230a07559357dff1f201e9c3a1357e65
|
4
|
+
data.tar.gz: a65e04a7a889cc94e6c384443a56949494540c94efdcf79d1bb81a6fd212862e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c7432c6014d1fe4943d137598c16c83048252d2d65eda23fe235d222bff97e00886f407ba1b6d003d287ef3e706df5b56f360d7e5f11560a134bafdb02b5828
|
7
|
+
data.tar.gz: 0aa1a8a22c15e84486894ca72a97eef72eb5fea69572cc81cb825cf5e51e255c79515d89b4b952e56c65b20644c99eb2b970d0f95db8458c53a946a1b24c0fab
|
data/app/models/picture_file.rb
CHANGED
@@ -24,7 +24,7 @@ class PictureFile < ApplicationRecord
|
|
24
24
|
validates_associated :picture_attachable
|
25
25
|
default_scope { order('picture_files.position') }
|
26
26
|
# http://railsforum.com/viewtopic.php?id=11615
|
27
|
-
acts_as_list scope:
|
27
|
+
acts_as_list scope: :picture_attachable
|
28
28
|
strip_attributes only: :picture_attachable_type
|
29
29
|
|
30
30
|
paginates_per 10
|
data/lib/enju_biblio/version.rb
CHANGED
@@ -1,8 +1,14 @@
|
|
1
1
|
require 'rails_helper'
|
2
2
|
|
3
3
|
describe PictureFile do
|
4
|
-
|
4
|
+
fixtures :all
|
5
5
|
|
6
|
+
it "should move position" do
|
7
|
+
picture_file = PictureFile.find(1)
|
8
|
+
expect(picture_file.first?).to be_truthy
|
9
|
+
picture_file.move_lower
|
10
|
+
expect(picture_file.last?).to be_truthy
|
11
|
+
end
|
6
12
|
end
|
7
13
|
|
8
14
|
# == Schema Information
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_biblio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosuke Tanabe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: enju_library
|