ishapi 0.1.8.248 → 0.1.8.249
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a2fa517bcafd99d966e6766dd6208f5de27e50c933abf3ec2da3ddc818ccad7
|
4
|
+
data.tar.gz: 12db5b785227dbd18112ce8d054d935a547071edde7bf827009e0063f6bc3706
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa23ab17391b6f2fe2cf51c359be661dbe3856c38a847d6d7387ed025402f953f33164d26268c48bdad7de95737399830e615d427e620b873688c52b3a22678d
|
7
|
+
data.tar.gz: bafad99ab0371992514d11f1be613a36d79cce650d6f9da2588880b63ec27e784f484c2dad30b029e9f4128825d13e5b38fbc10125488ae2748f9e96125388b4
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require_dependency "ishapi/application_controller"
|
2
2
|
class Ishapi::PaymentsController < ApplicationController
|
3
3
|
|
4
|
-
before_action :check_profile, only: %i|
|
4
|
+
before_action :check_profile, only: %i| create unlock |
|
5
5
|
|
6
6
|
# alphabetized : )
|
7
7
|
|
@@ -10,9 +10,13 @@ class Ishapi::PaymentsController < ApplicationController
|
|
10
10
|
## _vp_ 2022-09-04 continue
|
11
11
|
##
|
12
12
|
## @TODO: cannot proceed if already is_purchasing?
|
13
|
+
## @TODO: and this doesn't say what you're buying! herehere
|
13
14
|
##
|
14
15
|
def create
|
15
16
|
authorize! :create, ::Ish::Payment
|
17
|
+
|
18
|
+
puts! @current_profile, 'current_profile'
|
19
|
+
|
16
20
|
@current_profile.update_attributes({ is_purchasing: true })
|
17
21
|
|
18
22
|
begin
|
data/config/routes.rb
CHANGED
@@ -4,9 +4,6 @@ Ishapi::Engine.routes.draw do
|
|
4
4
|
root :to => 'application#home'
|
5
5
|
post 'home', :to => 'application#home'
|
6
6
|
|
7
|
-
# A
|
8
|
-
resources :addresses
|
9
|
-
|
10
7
|
# E
|
11
8
|
post 'email_messages', to: 'email_messages#receive'
|
12
9
|
get 'email_messages/:id', to: 'email_messages#show', as: :email_message
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ishapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8.
|
4
|
+
version: 0.1.8.249
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
@@ -208,7 +208,6 @@ files:
|
|
208
208
|
- app/assets/stylesheets/ishapi/galleries.scss
|
209
209
|
- app/assets/stylesheets/ishapi/locations.scss
|
210
210
|
- app/assets/stylesheets/scaffold.css
|
211
|
-
- app/controllers/ishapi/addresses_controller.rb
|
212
211
|
- app/controllers/ishapi/application_controller.rb
|
213
212
|
- app/controllers/ishapi/email_conversations_controller.rb
|
214
213
|
- app/controllers/ishapi/email_messages_controller.rb
|
@@ -1,23 +0,0 @@
|
|
1
|
-
require_dependency "ishapi/application_controller"
|
2
|
-
|
3
|
-
module Ishapi
|
4
|
-
class AddressesController < ApplicationController
|
5
|
-
before_action :check_profile, :only => [ :create ]
|
6
|
-
|
7
|
-
def create
|
8
|
-
if @current_profile.addresses.length == 0
|
9
|
-
@address = CoTailors::Address.new({ :profile_id => @current_profile.id })
|
10
|
-
else
|
11
|
-
@address = @current_profile.addresses[0]
|
12
|
-
end
|
13
|
-
authorize! :update, @address
|
14
|
-
flag = @address.update_attributes( params[:address].permit(:name, :phone, :address_1, :address_2, :city, :state, :zipcode ) )
|
15
|
-
if flag
|
16
|
-
render :json => { :status => :ok, :message => 'Successfully put an address.' }
|
17
|
-
else
|
18
|
-
render :json => { :status => :not_ok, :error => @address.errors.messages }
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
end
|
23
|
-
end
|