ish_manager 0.1.8.288 → 0.1.8.291

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: 7a2940ad94a0e59f20f02943f0b7cb77bb28f2466e829d751e093dda92645dab
4
- data.tar.gz: aa46582d41d8d4496af4b28746b6ef164b3181cdb3299856f07606a766519b7c
3
+ metadata.gz: b2350852869b35c0d23dcc0f4ceb241e18421b85479016e496690e46ea692280
4
+ data.tar.gz: cca6886cbb25473fc84af5f65b81c2b3246c2b3e442138b47e2c632ad7ee3d83
5
5
  SHA512:
6
- metadata.gz: bd800dc93b83766dbbf23c171cb35e2fd7cf01501a2bf41be5f7e76a24d77f75e8e332483e30176cb6dc4caeedda5aaf4fb71d7e9cd294b810dd2d5ddce64628
7
- data.tar.gz: 7841ecdf5a818bf2ca3a10f0d7cdcdd54cc275d6d809fbf95ae12c66f8971572dfc5f13657b237b8cb1a11d13754db207b4fe1052d78ee4d05e58b036ac99a1b
6
+ metadata.gz: 9919f8ad085a4d20ca85419c1db2b71e69b934c83a614860765f4fa411277d543204b5d98b0df402e95c0d122dcee9088a40633ba6151b5989e6203bed9a6f8b
7
+ data.tar.gz: 48d64edadefb32ab2477b2399028b9f1a18262b78768bb379a4f8c7e22ff3fc4c0dc263b269117beccf8e69b1eeff45e36d3f52ac8e195ac3eb7250ad67be04a
@@ -37,8 +37,10 @@ class IshManager::MapsController < IshManager::ApplicationController
37
37
  end
38
38
  end
39
39
 
40
+ ## @TODO: @obsolete, remove
40
41
  def edit
41
42
  authorize! :edit, @map
43
+ redirect_to action: 'show'
42
44
  end
43
45
 
44
46
  def export
@@ -10,14 +10,12 @@
10
10
  = f.label :name
11
11
  = f.text_field :name
12
12
  .field
13
- = f.label :created_at
14
- = f.text_field :created_at
13
+ = label_tag :photo
14
+ = file_field_tag :photo
15
15
  .field
16
16
  = f.label :descr
17
17
  = f.text_area :descr, :class => :tinymce
18
- .field
19
- = label_tag :photo
20
- = file_field_tag :photo
18
+
21
19
 
22
20
  .col.s6
23
21
  .field
@@ -29,11 +27,6 @@
29
27
  .field
30
28
  = f.label :city
31
29
  = f.select :city_id, options_for_select( @cities_list, :selected => ( newsitem[:city_id] || params[:city_id] ) )
32
- -# @TODO: tags must be multi-select, not 1x1
33
- .field
34
- = f.label :user_profile
35
- = f.select :user_profile_id, options_for_select( @user_profiles_list, selected: ( newsitem[:user_profile_id] || params[:user_profile_id] ) )
36
-
37
30
 
38
31
  %hr
39
32
  .row
data/config/routes.rb CHANGED
@@ -51,7 +51,7 @@ IshManager::Engine.routes.draw do
51
51
  resources 'newsitems'
52
52
  end
53
53
  post 'maps/import', to: 'maps#import', as: :import_map
54
- get 'maps/:id', to: 'maps#edit'
54
+ get 'maps/:id', to: 'maps#show'
55
55
  post 'maps/:id/export', to: 'maps#export', as: :export_map
56
56
 
57
57
  resources 'markers'
@@ -84,8 +84,7 @@ IshManager::Engine.routes.draw do
84
84
  resources :tags
85
85
  end
86
86
 
87
- # resources :stock_actions
88
- # resources :stock_options
87
+ ## @TODO: move these to iron warbler
89
88
  resources :stock_watches
90
89
  resources :option_watches
91
90
 
data/lib/ish_manager.rb CHANGED
@@ -4,6 +4,7 @@ require 'haml'
4
4
  require 'cancancan'
5
5
  require 'kaminari/mongoid'
6
6
  require 'kaminari/actionview'
7
+ require 'mongoid_paperclip'
7
8
 
8
9
  module IshManager
9
10
  # Your code goes here...
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.288
4
+ version: 0.1.8.291
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-19 00:00:00.000000000 Z
11
+ date: 2022-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk