enju_bookmark 0.1.2.pre19 → 0.1.2.pre20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8e6f55b25a2340ef697b6ad420eb74870d73f58
4
- data.tar.gz: 84c33aa8efee5bcfa4517c22eab1e3b6c3a5f760
3
+ metadata.gz: c706947c13a96014a1a05ed98e330f2ed6513d56
4
+ data.tar.gz: 7b02c40716559fcbc2bcbc7f7f7e6bb2e90aa746
5
5
  SHA512:
6
- metadata.gz: 18f8a8af6a24e234df18d304d07d4e32d42a3c0cbc45a8a9d11a8807d70f916308121126a8049f1abccc6b81cde88153f16d98d5f50306149258c07f4f4b49dd
7
- data.tar.gz: 7b01640da1e6b96100367355463688ae1f17d1612aabac13d0adebe23d84cdc2687275c879ec1eefcc40df89edaf1023983c81b8692e657bbc758e705e5fe523
6
+ metadata.gz: 9d28319813f59f50f47c9c995bc689fc1ac3747e586bf0f37d8e35adaa132ca679396e0e4270ca638ee7857b6a54b8a670e8f80df77f7a3746eaee3cb01265e1
7
+ data.tar.gz: 1f82adc490a4a0822ca13f600d8d874506f5dbbbe03272f94dac016b06ce0e2cafcd6dcd4930a9bf7dc6e0de2d2246b57125c5500c81aedd626121468b28ba9c
@@ -23,7 +23,7 @@ module EnjuBookmark
23
23
  can :show, Bookmark do |bookmark|
24
24
  if bookmark.user == user
25
25
  true
26
- elsif user.share_bookmarks
26
+ elsif user.profile.try(:share_bookmarks)
27
27
  true
28
28
  else
29
29
  false
@@ -1,3 +1,3 @@
1
1
  module EnjuBookmark
2
- VERSION = "0.1.2.pre19"
2
+ VERSION = "0.1.2.pre20"
3
3
  end
@@ -1521,7 +1521,6 @@ ActiveRecord::Schema.define(version: 20141013152013) do
1521
1521
  t.datetime "updated_at"
1522
1522
  t.boolean "save_checkout_history", default: false, null: false
1523
1523
  t.string "checkout_icalendar_token"
1524
- t.boolean "share_bookmarks"
1525
1524
  t.string "username"
1526
1525
  t.datetime "deleted_at"
1527
1526
  t.datetime "expired_at"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_bookmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.pre19
4
+ version: 0.1.2.pre20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
@@ -259,7 +259,6 @@ files:
259
259
  - db/migrate/20081212151820_create_bookmark_stat_has_manifestations.rb
260
260
  - db/migrate/20100222124420_add_allow_bookmark_external_url_to_library_group.rb
261
261
  - db/migrate/20100525171356_acts_as_taggable_on_migration.rb
262
- - db/migrate/20111231145823_add_share_bookmarks_to_user.rb
263
262
  - db/migrate/20140524135607_create_bookmark_stat_transitions.rb
264
263
  - db/migrate/20140812093836_add_share_bookmarks_to_profile.rb
265
264
  - lib/enju_bookmark.rb
@@ -1,5 +0,0 @@
1
- class AddShareBookmarksToUser < ActiveRecord::Migration
2
- def change
3
- add_column :users, :share_bookmarks, :boolean
4
- end
5
- end