ish_manager 0.1.8.213 → 0.1.8.214

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
  SHA256:
3
- metadata.gz: '048a9695a927421b8e6ab1e3a892d86cbedd0be2439fab600fa78f218c09686a'
4
- data.tar.gz: e4644567d755eeacbd52c46093dc9da8934cefec50f255c80cbc8a6e16bf48fb
3
+ metadata.gz: 97420d8d5159de8bd16e2e2b4c364c72c0f90f1de487c7d4b9346e557a2c603b
4
+ data.tar.gz: 98cf5b56ed11357f000d31f507f17834cdbbb1f97eeefc768511e71bce8f9042
5
5
  SHA512:
6
- metadata.gz: 829b40224769dae497fdb879f485a0e1b79c62fe60612e5c18f6042c7a4d49f625ac5844b85d13355970a74f68edfe4bea78724ab592e7dd26a1a236d22186ec
7
- data.tar.gz: 1bf55994dac2045f5b7bca5c2b454905ff3d7dfaab58cbc3d5a1222234c3aa7705ef780d48e86c8a869116c104a0655c63e529f7d0d2c0a58d456459d681c35f
6
+ metadata.gz: b91384e992d08ac1dad9d6a9bef4b7ff43d5a04f4729d679ee27f0a6954a49235008890aed9e05b0a75bfd782a8914d4ec23e53a120cbbcd56a1adb49f20da52
7
+ data.tar.gz: fbd2cfaf7b4e1a436e62c57924f3f948bb996192e9f922603a63b1f02ab66243acfc6dbe219c304c8476c72c2e4177f7559dc89fec68aa598f35e3952f5559c1
@@ -5,7 +5,7 @@ class IshManager::VideosController < IshManager::ApplicationController
5
5
 
6
6
  def index
7
7
  authorize! :index, Video.new
8
- @videos = Video.unscoped.where( :user_profile => current_user.profile ).order_by( :created_at => :desc )
8
+ @videos = Video.unscoped.where( is_trash: false, :user_profile => current_user.profile ).order_by( :created_at => :desc )
9
9
 
10
10
  if params[:city_id]
11
11
  city = City.find params[:city_id]
@@ -51,12 +51,13 @@ class IshManager::VideosController < IshManager::ApplicationController
51
51
  @video = Video.new
52
52
  authorize! :new, @video
53
53
 
54
- # @tags_list = Tag.unscoped.or( { :is_public => true }, { :user_id => current_user.id } ).list
55
- # @cities_list = City.list
54
+ @tags_list = Tag.unscoped.or( { :is_public => true }, { :user_id => current_user.id } ).list
55
+ @cities_list = City.list
56
56
  end
57
57
 
58
58
  def create
59
- @video = Video.new params[:video].permit!
59
+ @video = Video.new params[:video].permit(%i| name descr is_public is_trash is_feature x y lang youtube_id
60
+ tags city site user_profile premium_tier premium_purchases thumb video |)
60
61
  @video.user_profile = current_user.profile
61
62
  if !params[:video][:site_id].blank?
62
63
  @video.site = Site.find params[:video][:site_id]
@@ -109,7 +110,7 @@ class IshManager::VideosController < IshManager::ApplicationController
109
110
  flag = @video.update_attributes( :is_trash => true )
110
111
  @video.city.touch if @video.city
111
112
  @video.site.touch if @video.site
112
- @video.tag.touch if @video.tag
113
+ @video.tags.map &:touch
113
114
  if flag
114
115
  flash[:notice] = "deleted video"
115
116
  else
@@ -17,19 +17,11 @@
17
17
  .input-field
18
18
  = f.select :role_name, options_for_select( [[nil, nil]] + IshModels::UserProfile::ROLES.map { |r| [ r, r ] }, :selected => profile.role_name )
19
19
  %label role name
20
-
21
- .input-field
22
- = f.select :tag, options_for_select( [[nil, nil]] + IshModels::UserProfile::TAGS.map { |r| [ r, r ] }, :selected => profile.tag )
23
- %label Tag
24
20
 
25
21
  .input-field
26
22
  = f.select :current_city, options_for_select( @cities_list, :selected => profile.current_city_id )
27
23
  %label City
28
24
 
29
- .input-field
30
- %label About
31
- = f.text_area :about, :rows => 10
32
-
33
25
  .input-field
34
26
  = f.label :fb_access_token
35
27
  = f.text_field :fb_access_token
@@ -20,11 +20,9 @@
20
20
  .field
21
21
  = f.label :thumb
22
22
  = f.file_field :thumb
23
-
24
23
  .field
25
- = f.label :tag_id
26
- = select :video, :tag_id, @tags_list, :selected => params[:tag_id]
27
-
24
+ = f.label :tags
25
+ = f.select :tag_ids, @tags_list, {}, { multiple: true }
28
26
  .field
29
27
  = f.label :city_id
30
28
  = select :video, :city_id, @cities_list
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.213
4
+ version: 0.1.8.214
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-01 00:00:00.000000000 Z
11
+ date: 2020-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -129,7 +129,6 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
- - MIT-LICENSE
133
132
  - Rakefile
134
133
  - app/assets/config/ish_manager_manifest.js
135
134
  - app/assets/images/bg/confectionary.png
data/MIT-LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright 2017 piousbox
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.