paid_up 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -0
- data/VERSION +1 -1
- data/app/models/paid_up/ability.rb +31 -0
- data/paid_up.gemspec +5 -4
- data/spec/dummy/app/models/ability.rb +13 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/log/development.log +463 -0
- metadata +4 -3
- data/app/models/ability.rb +0 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f49106ee629a6a065042d75ee223fc6c30cb2d00
|
4
|
+
data.tar.gz: 324b042c42648a42fd31f0410f6345880fd3295e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae595d9e0fb58ba1cb29149ffad34ada79502fa408c2a9197905e7b9edd7446885d927990972ea780d5888093e087a19e0f28f23e9cf99236109d10405983e69
|
7
|
+
data.tar.gz: f31a33f12224ecfab18a7684ffbf168abd48f8b25b3101a32701900fe1bb3e20b035d8d185f488a5c1c9be778f5587761760f2fc9122298ead7d4465740c1b14
|
data/README.md
CHANGED
@@ -52,6 +52,25 @@ Enabling Javascript
|
|
52
52
|
In order for PaidUp's AJAX functionality to work, you will need to add this to your layout file, preferably at the very end of the <body> element (for speed reasons):
|
53
53
|
|
54
54
|
= render_footer_javascript
|
55
|
+
|
56
|
+
Abilities
|
57
|
+
-----------------------------
|
58
|
+
|
59
|
+
Abilities corresponding to features you have defined will be generated automatically for you if you include the PaidUp::Ability module and use the `initialize_paid_up(user)` command, like this:
|
60
|
+
|
61
|
+
class Ability
|
62
|
+
include CanCan::Ability
|
63
|
+
include PaidUp::Ability
|
64
|
+
|
65
|
+
def initialize(user)
|
66
|
+
user ||= User.new # anonymous user (not logged in)
|
67
|
+
|
68
|
+
# Rails Application's initialization could go here.
|
69
|
+
can :manage, Group, user: user
|
70
|
+
|
71
|
+
initialize_paid_up(user)
|
72
|
+
end
|
73
|
+
end
|
55
74
|
|
56
75
|
Contributing to Paid Up
|
57
76
|
----------------------------
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module PaidUp
|
2
|
+
module Ability
|
3
|
+
include CanCan::Ability
|
4
|
+
|
5
|
+
def initialize_paid_up(user)
|
6
|
+
features = PaidUp::Feature.all
|
7
|
+
|
8
|
+
for feature in features
|
9
|
+
|
10
|
+
case feature.setting_type
|
11
|
+
when 'table_rows'
|
12
|
+
model = feature.name.classify.constantize
|
13
|
+
if user.table_rows_allowed(feature.name) > 0 || user.table_rows_allowed(feature.name) == -1
|
14
|
+
can :manage, model, :user => user
|
15
|
+
can :own, model
|
16
|
+
unless user.table_rows_remaining(feature.name) > 0
|
17
|
+
cannot :create, model
|
18
|
+
end
|
19
|
+
end
|
20
|
+
can :read, model
|
21
|
+
when 'boolean'
|
22
|
+
if user.plan.feature_setting feature.id
|
23
|
+
can :use, feature.name.to_sym
|
24
|
+
end
|
25
|
+
else
|
26
|
+
raise(:unknown_feature_type.l)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/paid_up.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: paid_up 0.
|
5
|
+
# stub: paid_up 0.2.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "paid_up"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.2.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Karen Lundgren"]
|
14
|
-
s.date = "2015-05-
|
14
|
+
s.date = "2015-05-20"
|
15
15
|
s.description = "Allows a model of your choosing (such as users) to subscribe to a plan, which enables features."
|
16
16
|
s.email = "karen.e.lundgren@gmail.com"
|
17
17
|
s.executables = ["rails"]
|
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
|
|
35
35
|
"app/helpers/paid_up/paid_up_helper.rb",
|
36
36
|
"app/helpers/paid_up/plans_helper.rb",
|
37
37
|
"app/helpers/paid_up/subscriptions_helper.rb",
|
38
|
-
"app/models/ability.rb",
|
38
|
+
"app/models/paid_up/ability.rb",
|
39
39
|
"app/models/paid_up/feature.rb",
|
40
40
|
"app/models/paid_up/features_plan.rb",
|
41
41
|
"app/models/paid_up/plan.rb",
|
@@ -86,6 +86,7 @@ Gem::Specification.new do |s|
|
|
86
86
|
"spec/dummy/app/assets/javascripts/application.js",
|
87
87
|
"spec/dummy/app/assets/stylesheets/application.css.scss",
|
88
88
|
"spec/dummy/app/controllers/application_controller.rb",
|
89
|
+
"spec/dummy/app/models/ability.rb",
|
89
90
|
"spec/dummy/app/models/group.rb",
|
90
91
|
"spec/dummy/app/models/user.rb",
|
91
92
|
"spec/dummy/app/views/layouts/application.html.haml",
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class Ability
|
2
|
+
include CanCan::Ability
|
3
|
+
include PaidUp::Ability
|
4
|
+
|
5
|
+
def initialize(user)
|
6
|
+
user ||= User.new # anonymous user (not logged in)
|
7
|
+
|
8
|
+
# Rails Application's initialization could go here.
|
9
|
+
can :manage, Group, user: user
|
10
|
+
|
11
|
+
initialize_paid_up(user)
|
12
|
+
end
|
13
|
+
end
|
Binary file
|
@@ -108880,3 +108880,466 @@ Migrating to AddStripeIdColumnToUsers (20150519164355)
|
|
108880
108880
|
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
108881
108881
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "paid_up_features_plans" ("feature_id", "plan_id", "setting") VALUES (?, ?, ?) [["feature_id", 3], ["plan_id", 5], ["setting", 1]]
|
108882
108882
|
[1m[36m (96.1ms)[0m [1mcommit transaction[0m
|
108883
|
+
|
108884
|
+
|
108885
|
+
Started GET "/subscriptions" for 127.0.0.1 at 2015-05-20 07:15:52 -0600
|
108886
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
108887
|
+
Processing by PaidUp::SubscriptionsController#index as HTML
|
108888
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
108889
|
+
Completed 401 Unauthorized in 316ms (ActiveRecord: 0.6ms)
|
108890
|
+
|
108891
|
+
|
108892
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2015-05-20 07:15:53 -0600
|
108893
|
+
Processing by Devise::SessionsController#new as HTML
|
108894
|
+
Rendered /home/work/Gems/paid_up/app/views/devise/sessions/_new_form.html.haml (19.1ms)
|
108895
|
+
Rendered /home/work/Gems/paid_up/app/views/devise/registrations/_new_form.html.haml (4.5ms)
|
108896
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.9ms)
|
108897
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.1ms)
|
108898
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_list.html.haml (0.7ms)
|
108899
|
+
Rendered /home/work/Gems/paid_up/app/views/devise/shared/_links.html.haml (6.6ms)
|
108900
|
+
Rendered /home/work/Gems/paid_up/app/views/devise/sessions/new.html.haml within layouts/application (38.4ms)
|
108901
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_head_css.html.haml (0.7ms)
|
108902
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_alert.html.haml (1.9ms)
|
108903
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_alert_flash_messages.html.haml (4.3ms)
|
108904
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.4ms)
|
108905
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.1ms)
|
108906
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.3ms)
|
108907
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_list.html.haml (0.3ms)
|
108908
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_widgets.html.haml (2.4ms)
|
108909
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_footer_javascript.html.haml (0.7ms)
|
108910
|
+
Completed 200 OK in 2998ms (Views: 2480.4ms | ActiveRecord: 0.0ms)
|
108911
|
+
|
108912
|
+
|
108913
|
+
Started GET "/assets/application.self-4b8455232921b510ace0cb80aa5c87e9a90226e2921e5b44bcd0304e0862f293.css?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108914
|
+
|
108915
|
+
|
108916
|
+
Started GET "/assets/bootstrap/button.self-37c62bff1d75f86f3348b8679873d5156d8b9938b62841038dca21690f4740f1.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108917
|
+
|
108918
|
+
|
108919
|
+
Started GET "/assets/bootstrap/alert.self-15ce09eba576e56db3edfd87accc0ff48823df915169e350b4fd97290f96aee1.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108920
|
+
|
108921
|
+
|
108922
|
+
Started GET "/assets/bootstrap/affix.self-68d1a5161d04ca9fe1b9d9f4114d9426c7798bf90f2703a97aca35c8113469bb.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108923
|
+
|
108924
|
+
|
108925
|
+
Started GET "/assets/jquery.self-d03a5518f45df77341bdbe6201ba3bfa547ebba8ed64f0ea56bfa5f96ea7c074.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108926
|
+
|
108927
|
+
|
108928
|
+
Started GET "/assets/jquery_ujs.self-8e98a7a072a6cee1372d19fff9ff3e6aa1e39a37d89d6f06861637d061113ee7.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108929
|
+
|
108930
|
+
|
108931
|
+
Started GET "/assets/bootstrap/carousel.self-9aaab1a477b9c1156bab751cb8da47f77dace6da88eef8ae830e60f3cff3a8be.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108932
|
+
|
108933
|
+
|
108934
|
+
Started GET "/assets/bootstrap/collapse.self-eeece00cd06a3d7cc071ab7845b549d4991edd0f0895e4be70fe40bac2fb5f4b.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108935
|
+
|
108936
|
+
|
108937
|
+
Started GET "/assets/bootstrap/dropdown.self-a3998e7ca949c04cb86b5c635deb0abcc7a24dc02e81be66b8acfef02d811e45.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108938
|
+
|
108939
|
+
|
108940
|
+
Started GET "/assets/bootstrap/modal.self-f2759e138605770e60526c00c6d86cbb3378da203641f9d6b204c9f0192b9267.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108941
|
+
|
108942
|
+
|
108943
|
+
Started GET "/assets/bootstrap/scrollspy.self-5ea180afe4404f83fc97d997833f2edefd34475b0b5ddab310e27abc2bbd5f2f.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108944
|
+
|
108945
|
+
|
108946
|
+
Started GET "/assets/bootstrap/tab.self-e1bba7115c90301056ee94c4716de2fcbe4498015def2dab9ff9879f339bd245.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108947
|
+
|
108948
|
+
|
108949
|
+
Started GET "/assets/bootstrap/tooltip.self-c3b5c16f394ab9c0391db4431aac4f2d2ddf1bba4c5d3228ed343de05ecc8e83.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108950
|
+
|
108951
|
+
|
108952
|
+
Started GET "/assets/bootstrap/popover.self-2674d99c3ab0415dba0b958a80b3840f70ff6368b155d890306c0291be49453b.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108953
|
+
|
108954
|
+
|
108955
|
+
Started GET "/assets/bootstrap-sprockets.self-fbfa5ad7d9aa0afe439ec4ff3883acc4cb92b62cb67c40d674320c9aa1d4642d.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108956
|
+
|
108957
|
+
|
108958
|
+
Started GET "/assets/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108959
|
+
|
108960
|
+
|
108961
|
+
Started GET "/assets/bootstrap/transition.self-7742dca5e6acf313fbb217811b48468282cddf1a9baea5c89ec92e367ef242cb.js?body=1" for 127.0.0.1 at 2015-05-20 07:15:56 -0600
|
108962
|
+
|
108963
|
+
|
108964
|
+
Started POST "/users" for 127.0.0.1 at 2015-05-20 07:16:06 -0600
|
108965
|
+
Processing by Devise::RegistrationsController#create as HTML
|
108966
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"aqQ9tGyYDWZjP3J2bHflCbV3LZ6oP+rKbVBJR3Ud4QqkHYR/oxb+oVOfszhdDNlF0uNLNY56yyMJffXMmPXOKA==", "user"=>{"email"=>"webmaster@gemvein.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign Up"}
|
108967
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108968
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'webmaster@gemvein.com' LIMIT 1
|
108969
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "encrypted_password") VALUES (?, ?)[0m [["email", "webmaster@gemvein.com"], ["encrypted_password", "$2a$10$ZtBYGGJwlhEb.dM/dhC1guEMi/ZSmvVM4eitZ0qlc.zkv1GYfDIXe"]]
|
108970
|
+
[1m[35m (117.1ms)[0m commit transaction
|
108971
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108972
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ? WHERE "users"."id" = ? [["last_sign_in_at", "2015-05-20 13:16:07.278431"], ["current_sign_in_at", "2015-05-20 13:16:07.278431"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["id", 1]]
|
108973
|
+
[1m[36m (95.9ms)[0m [1mcommit transaction[0m
|
108974
|
+
Redirected to http://localhost:3000/subscriptions
|
108975
|
+
Completed 302 Found in 635ms (ActiveRecord: 213.8ms)
|
108976
|
+
|
108977
|
+
|
108978
|
+
Started GET "/subscriptions" for 127.0.0.1 at 2015-05-20 07:16:07 -0600
|
108979
|
+
Processing by PaidUp::SubscriptionsController#index as HTML
|
108980
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
108981
|
+
[1m[36mPaidUp::Plan Load (0.2ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "free-plan"]]
|
108982
|
+
[1m[35m (0.1ms)[0m begin transaction
|
108983
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "stripe_id" = ? WHERE "users"."id" = ?[0m [["stripe_id", "cus_6H5DacKuscu91V"], ["id", 1]]
|
108984
|
+
[1m[35m (352.2ms)[0m commit transaction
|
108985
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
108986
|
+
[1m[35mPaidUp::Plan Load (0.1ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "free-plan"]]
|
108987
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "free-plan"]]
|
108988
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_definition_list.html.haml (2.2ms)
|
108989
|
+
[1m[35mPaidUp::Feature Load (0.1ms)[0m SELECT "paid_up_features".* FROM "paid_up_features"
|
108990
|
+
Rendered /home/work/Gems/paid_up/app/views/paid_up/features/_abilities_table.html.haml (7.4ms)
|
108991
|
+
Rendered /home/work/Gems/paid_up/app/views/paid_up/subscriptions/index.html.haml within layouts/application (732.6ms)
|
108992
|
+
Completed 500 Internal Server Error in 3153ms (ActiveRecord: 353.8ms)
|
108993
|
+
|
108994
|
+
ActionView::Template::Error (wrong argument type Class (expected Module)):
|
108995
|
+
5: %td
|
108996
|
+
6: - case feature.setting_type
|
108997
|
+
7: - when 'boolean'
|
108998
|
+
8: - if can? :use, feature.name.to_sym
|
108999
|
+
9: = icon 'ok'
|
109000
|
+
10: - else
|
109001
|
+
11: = icon 'remove'
|
109002
|
+
app/models/ability.rb:3:in `include'
|
109003
|
+
app/models/ability.rb:3:in `<class:Ability>'
|
109004
|
+
app/models/ability.rb:1:in `<top (required)>'
|
109005
|
+
|
109006
|
+
|
109007
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (10.3ms)
|
109008
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.1ms)
|
109009
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms)
|
109010
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (26.2ms)
|
109011
|
+
|
109012
|
+
|
109013
|
+
Started POST "/users" for 127.0.0.1 at 2015-05-20 07:16:10 -0600
|
109014
|
+
Processing by Devise::RegistrationsController#create as HTML
|
109015
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"aqQ9tGyYDWZjP3J2bHflCbV3LZ6oP+rKbVBJR3Ud4QqkHYR/oxb+oVOfszhdDNlF0uNLNY56yyMJffXMmPXOKA==", "user"=>{"email"=>"webmaster@gemvein.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign Up"}
|
109016
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
109017
|
+
Redirected to http://localhost:3000/
|
109018
|
+
Filter chain halted as :require_no_authentication rendered or redirected
|
109019
|
+
Completed 302 Found in 423ms (ActiveRecord: 0.1ms)
|
109020
|
+
|
109021
|
+
|
109022
|
+
Started GET "/" for 127.0.0.1 at 2015-05-20 07:16:11 -0600
|
109023
|
+
Processing by HighVoltage::PagesController#show as HTML
|
109024
|
+
Parameters: {"id"=>"index"}
|
109025
|
+
Rendered pages/index.html.haml within layouts/application (2.5ms)
|
109026
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_head_css.html.haml (0.2ms)
|
109027
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_alert.html.haml (0.1ms)
|
109028
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_alert_flash_messages.html.haml (1.2ms)
|
109029
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.1ms)
|
109030
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
109031
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.4ms)
|
109032
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.4ms)
|
109033
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_list.html.haml (0.2ms)
|
109034
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_widgets.html.haml (0.2ms)
|
109035
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_footer_javascript.html.haml (0.1ms)
|
109036
|
+
Completed 200 OK in 557ms (Views: 556.3ms | ActiveRecord: 0.1ms)
|
109037
|
+
|
109038
|
+
|
109039
|
+
Started GET "/plans" for 127.0.0.1 at 2015-05-20 07:16:15 -0600
|
109040
|
+
Processing by PaidUp::PlansController#index as HTML
|
109041
|
+
[1m[36mPaidUp::Plan Load (0.2ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE (sort_order >= 0) ORDER BY sort_order ASC[0m
|
109042
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
109043
|
+
[1m[36mPaidUp::Plan Load (0.1ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "free-plan"]]
|
109044
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "free-plan"]]
|
109045
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "free-plan"]]
|
109046
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon_button_to.html.haml (2.5ms)
|
109047
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "free-plan"]]
|
109048
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "free-plan"]]
|
109049
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon_button_to.html.haml (0.5ms)
|
109050
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "free-plan"]]
|
109051
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "free-plan"]]
|
109052
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon_button_to.html.haml (0.4ms)
|
109053
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "free-plan"]]
|
109054
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "free-plan"]]
|
109055
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon_button_to.html.haml (0.6ms)
|
109056
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "free-plan"]]
|
109057
|
+
[1m[36mPaidUp::Feature Load (0.1ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features"[0m
|
109058
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE (sort_order >= 0) ORDER BY sort_order ASC
|
109059
|
+
[1m[36mPaidUp::Feature Load (0.2ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 1]]
|
109060
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 2], ["feature_id", 1]]
|
109061
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon.html.haml (0.8ms)
|
109062
|
+
[1m[36mPaidUp::Feature Load (0.1ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 2]]
|
109063
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 2], ["feature_id", 2]]
|
109064
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 2]]
|
109065
|
+
[1m[35mCACHE (0.0ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 2], ["feature_id", 2]]
|
109066
|
+
[1m[36mPaidUp::Feature Load (0.0ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 3]]
|
109067
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 2], ["feature_id", 3]]
|
109068
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon.html.haml (0.1ms)
|
109069
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "free-plan"]]
|
109070
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "free-plan"]]
|
109071
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "free-plan"]]
|
109072
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon_button_to.html.haml (0.5ms)
|
109073
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1 [["id", 1]]
|
109074
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ?[0m [["plan_id", 3], ["feature_id", 1]]
|
109075
|
+
[1m[35mPaidUp::FeaturesPlan Load (0.2ms)[0m SELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1 [["plan_id", 3], ["feature_id", 1]]
|
109076
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon.html.haml (0.1ms)
|
109077
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 2]]
|
109078
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 3], ["feature_id", 2]]
|
109079
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 2]]
|
109080
|
+
[1m[35mCACHE (0.0ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 3], ["feature_id", 2]]
|
109081
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 3]]
|
109082
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 3], ["feature_id", 3]]
|
109083
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon.html.haml (0.1ms)
|
109084
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "free-plan"]]
|
109085
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "free-plan"]]
|
109086
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon_button_to.html.haml (0.4ms)
|
109087
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 1]]
|
109088
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 4], ["feature_id", 1]]
|
109089
|
+
[1m[36mPaidUp::FeaturesPlan Load (0.1ms)[0m [1mSELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1[0m [["plan_id", 4], ["feature_id", 1]]
|
109090
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon.html.haml (0.1ms)
|
109091
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1 [["id", 2]]
|
109092
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ?[0m [["plan_id", 4], ["feature_id", 2]]
|
109093
|
+
[1m[35mPaidUp::FeaturesPlan Load (0.1ms)[0m SELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1 [["plan_id", 4], ["feature_id", 2]]
|
109094
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 2]]
|
109095
|
+
[1m[35mCACHE (0.0ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 4], ["feature_id", 2]]
|
109096
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1[0m [["plan_id", 4], ["feature_id", 2]]
|
109097
|
+
[1m[35mCACHE (0.1ms)[0m SELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1 [["id", 3]]
|
109098
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ?[0m [["plan_id", 4], ["feature_id", 3]]
|
109099
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon.html.haml (0.1ms)
|
109100
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "free-plan"]]
|
109101
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "free-plan"]]
|
109102
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon_button_to.html.haml (0.5ms)
|
109103
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1 [["id", 1]]
|
109104
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ?[0m [["plan_id", 5], ["feature_id", 1]]
|
109105
|
+
[1m[35mPaidUp::FeaturesPlan Load (0.1ms)[0m SELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1 [["plan_id", 5], ["feature_id", 1]]
|
109106
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon.html.haml (0.2ms)
|
109107
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 2]]
|
109108
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 5], ["feature_id", 2]]
|
109109
|
+
[1m[36mPaidUp::FeaturesPlan Load (0.1ms)[0m [1mSELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1[0m [["plan_id", 5], ["feature_id", 2]]
|
109110
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1 [["id", 3]]
|
109111
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ?[0m [["plan_id", 5], ["feature_id", 3]]
|
109112
|
+
[1m[35mPaidUp::FeaturesPlan Load (0.0ms)[0m SELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1 [["plan_id", 5], ["feature_id", 3]]
|
109113
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon.html.haml (0.1ms)
|
109114
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "free-plan"]]
|
109115
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "free-plan"]]
|
109116
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon_button_to.html.haml (0.6ms)
|
109117
|
+
Rendered /home/work/Gems/paid_up/app/views/paid_up/features/_table.html.haml (4610.8ms)
|
109118
|
+
Rendered /home/work/Gems/paid_up/app/views/paid_up/plans/index.html.haml within layouts/application (9893.4ms)
|
109119
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_head_css.html.haml (0.1ms)
|
109120
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_alert_flash_messages.html.haml (0.1ms)
|
109121
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.1ms)
|
109122
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.5ms)
|
109123
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.4ms)
|
109124
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_list.html.haml (0.1ms)
|
109125
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_widgets.html.haml (0.3ms)
|
109126
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_footer_javascript.html.haml (0.0ms)
|
109127
|
+
Completed 200 OK in 9991ms (Views: 9987.2ms | ActiveRecord: 3.3ms)
|
109128
|
+
|
109129
|
+
|
109130
|
+
Started GET "/plans/4/subscriptions/new" for 127.0.0.1 at 2015-05-20 07:16:27 -0600
|
109131
|
+
Processing by PaidUp::SubscriptionsController#new as HTML
|
109132
|
+
Parameters: {"authenticity_token"=>"XKQh8DwsZsg9oQ5JlsTPMg6k6ywxt+Bur8/Sl6mrZPWSHZg786KVDw0Bzwenv/N+aTCNhxfywYfL4m4cRENL1w==", "plan_id"=>"4"}
|
109133
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
109134
|
+
[1m[35mPaidUp::Plan Load (0.2ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."id" = ? ORDER BY sort_order ASC LIMIT 1 [["id", 4]]
|
109135
|
+
[1m[36mPaidUp::Plan Load (0.1ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "free-plan"]]
|
109136
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "free-plan"]]
|
109137
|
+
[1m[36mPaidUp::Feature Load (0.1ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features"[0m
|
109138
|
+
[1m[35mPaidUp::Plan Load (0.2ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE (sort_order >= 0) AND (id IN (4)) ORDER BY sort_order ASC
|
109139
|
+
[1m[36mPaidUp::Feature Load (0.1ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 1]]
|
109140
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 4], ["feature_id", 1]]
|
109141
|
+
[1m[36mPaidUp::FeaturesPlan Load (0.1ms)[0m [1mSELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1[0m [["plan_id", 4], ["feature_id", 1]]
|
109142
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon.html.haml (0.3ms)
|
109143
|
+
[1m[35mPaidUp::Feature Load (0.1ms)[0m SELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1 [["id", 2]]
|
109144
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ?[0m [["plan_id", 4], ["feature_id", 2]]
|
109145
|
+
[1m[35mPaidUp::FeaturesPlan Load (0.1ms)[0m SELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1 [["plan_id", 4], ["feature_id", 2]]
|
109146
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 2]]
|
109147
|
+
[1m[35mCACHE (0.0ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 4], ["feature_id", 2]]
|
109148
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1[0m [["plan_id", 4], ["feature_id", 2]]
|
109149
|
+
[1m[35mPaidUp::Feature Load (0.1ms)[0m SELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1 [["id", 3]]
|
109150
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ?[0m [["plan_id", 4], ["feature_id", 3]]
|
109151
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon.html.haml (0.1ms)
|
109152
|
+
Rendered /home/work/Gems/paid_up/app/views/paid_up/features/_table.html.haml (357.6ms)
|
109153
|
+
Rendered /home/work/Gems/paid_up/app/views/paid_up/subscriptions/new.html.haml within layouts/application (1350.7ms)
|
109154
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_head_css.html.haml (0.1ms)
|
109155
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_alert_flash_messages.html.haml (0.1ms)
|
109156
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.1ms)
|
109157
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.2ms)
|
109158
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.1ms)
|
109159
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_list.html.haml (0.1ms)
|
109160
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_widgets.html.haml (0.2ms)
|
109161
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_footer_javascript.html.haml (0.1ms)
|
109162
|
+
Completed 200 OK in 2815ms (Views: 1428.7ms | ActiveRecord: 1.4ms)
|
109163
|
+
|
109164
|
+
|
109165
|
+
Started POST "/plans/4/subscriptions" for 127.0.0.1 at 2015-05-20 07:16:42 -0600
|
109166
|
+
Processing by PaidUp::SubscriptionsController#create as HTML
|
109167
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"d+1cqAdXZBYhBm1Udz1pJNmnGwIeoe4UKNU9mamO65K5VOVjyNmX0RGmrBpGRlVovjN9qTjkz/1M+IESRGbEsA==", "plan_id"=>"4", "card"=>"stripeToken", "stripeToken"=>"tok_164X3uDz4VtlhGogtJp1Zt3r"}
|
109168
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
|
109169
|
+
[1m[36mPaidUp::Plan Load (0.1ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["id", 4]]
|
109170
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
109171
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
109172
|
+
[1m[35mPaidUp::Plan Load (0.2ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "group-leader-plan"]]
|
109173
|
+
Redirected to http://localhost:3000/subscriptions
|
109174
|
+
Completed 302 Found in 4396ms (ActiveRecord: 0.6ms)
|
109175
|
+
|
109176
|
+
|
109177
|
+
Started GET "/subscriptions" for 127.0.0.1 at 2015-05-20 07:16:47 -0600
|
109178
|
+
Processing by PaidUp::SubscriptionsController#index as HTML
|
109179
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
109180
|
+
[1m[35mPaidUp::Plan Load (0.1ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "group-leader-plan"]]
|
109181
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "group-leader-plan"]]
|
109182
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_definition_list.html.haml (0.2ms)
|
109183
|
+
[1m[35mPaidUp::Feature Load (0.2ms)[0m SELECT "paid_up_features".* FROM "paid_up_features"
|
109184
|
+
Rendered /home/work/Gems/paid_up/app/views/paid_up/features/_abilities_table.html.haml (3.3ms)
|
109185
|
+
Rendered /home/work/Gems/paid_up/app/views/paid_up/subscriptions/index.html.haml within layouts/application (622.0ms)
|
109186
|
+
Completed 500 Internal Server Error in 1097ms (ActiveRecord: 0.5ms)
|
109187
|
+
|
109188
|
+
ActionView::Template::Error (wrong argument type Class (expected Module)):
|
109189
|
+
5: %td
|
109190
|
+
6: - case feature.setting_type
|
109191
|
+
7: - when 'boolean'
|
109192
|
+
8: - if can? :use, feature.name.to_sym
|
109193
|
+
9: = icon 'ok'
|
109194
|
+
10: - else
|
109195
|
+
11: = icon 'remove'
|
109196
|
+
app/models/ability.rb:3:in `include'
|
109197
|
+
app/models/ability.rb:3:in `<class:Ability>'
|
109198
|
+
app/models/ability.rb:1:in `<top (required)>'
|
109199
|
+
|
109200
|
+
|
109201
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (8.9ms)
|
109202
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.2ms)
|
109203
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
|
109204
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (23.8ms)
|
109205
|
+
|
109206
|
+
|
109207
|
+
Started GET "/subscriptions" for 127.0.0.1 at 2015-05-20 07:17:12 -0600
|
109208
|
+
Processing by PaidUp::SubscriptionsController#index as HTML
|
109209
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
109210
|
+
[1m[35mPaidUp::Plan Load (0.2ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "group-leader-plan"]]
|
109211
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "group-leader-plan"]]
|
109212
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_definition_list.html.haml (0.1ms)
|
109213
|
+
[1m[35mPaidUp::Feature Load (0.2ms)[0m SELECT "paid_up_features".* FROM "paid_up_features"
|
109214
|
+
Rendered /home/work/Gems/paid_up/app/views/paid_up/features/_abilities_table.html.haml (6.1ms)
|
109215
|
+
Rendered /home/work/Gems/paid_up/app/views/paid_up/subscriptions/index.html.haml within layouts/application (862.7ms)
|
109216
|
+
Completed 500 Internal Server Error in 1436ms (ActiveRecord: 1.5ms)
|
109217
|
+
|
109218
|
+
ActionView::Template::Error (wrong argument type Class (expected Module)):
|
109219
|
+
5: %td
|
109220
|
+
6: - case feature.setting_type
|
109221
|
+
7: - when 'boolean'
|
109222
|
+
8: - if can? :use, feature.name.to_sym
|
109223
|
+
9: = icon 'ok'
|
109224
|
+
10: - else
|
109225
|
+
11: = icon 'remove'
|
109226
|
+
app/models/ability.rb:3:in `extend'
|
109227
|
+
app/models/ability.rb:3:in `<class:Ability>'
|
109228
|
+
app/models/ability.rb:1:in `<top (required)>'
|
109229
|
+
|
109230
|
+
|
109231
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (9.9ms)
|
109232
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.6ms)
|
109233
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
|
109234
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (24.3ms)
|
109235
|
+
|
109236
|
+
|
109237
|
+
Started GET "/subscriptions" for 127.0.0.1 at 2015-05-20 07:17:53 -0600
|
109238
|
+
Processing by PaidUp::SubscriptionsController#index as HTML
|
109239
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
109240
|
+
[1m[35mPaidUp::Plan Load (0.2ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "group-leader-plan"]]
|
109241
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "group-leader-plan"]]
|
109242
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_definition_list.html.haml (0.1ms)
|
109243
|
+
[1m[35mPaidUp::Feature Load (0.2ms)[0m SELECT "paid_up_features".* FROM "paid_up_features"
|
109244
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features"[0m
|
109245
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "group-leader-plan"]]
|
109246
|
+
[1m[36mPaidUp::Feature Load (0.2ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 1]]
|
109247
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 4], ["feature_id", 1]]
|
109248
|
+
[1m[36mPaidUp::FeaturesPlan Load (0.1ms)[0m [1mSELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1[0m [["plan_id", 4], ["feature_id", 1]]
|
109249
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "group-leader-plan"]]
|
109250
|
+
[1m[36mPaidUp::Feature Load (0.2ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."name" = ? LIMIT 1[0m [["name", "groups"]]
|
109251
|
+
[1m[35mPaidUp::Feature Load (0.1ms)[0m SELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1 [["id", 2]]
|
109252
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ?[0m [["plan_id", 4], ["feature_id", 2]]
|
109253
|
+
[1m[35mPaidUp::FeaturesPlan Load (0.1ms)[0m SELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1 [["plan_id", 4], ["feature_id", 2]]
|
109254
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "group-leader-plan"]]
|
109255
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."name" = ? LIMIT 1 [["name", "groups"]]
|
109256
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 2]]
|
109257
|
+
[1m[35mCACHE (0.0ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 4], ["feature_id", 2]]
|
109258
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1[0m [["plan_id", 4], ["feature_id", 2]]
|
109259
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "groups" WHERE "groups"."user_id" = ? [["user_id", "1"]]
|
109260
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "group-leader-plan"]]
|
109261
|
+
[1m[35mPaidUp::Feature Load (0.1ms)[0m SELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1 [["id", 3]]
|
109262
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ?[0m [["plan_id", 4], ["feature_id", 3]]
|
109263
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon.html.haml (0.1ms)
|
109264
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon.html.haml (0.1ms)
|
109265
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1 [["stripe_id", "group-leader-plan"]]
|
109266
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."name" = ? LIMIT 1[0m [["name", "groups"]]
|
109267
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1 [["id", 2]]
|
109268
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ?[0m [["plan_id", 4], ["feature_id", 2]]
|
109269
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1 [["plan_id", 4], ["feature_id", 2]]
|
109270
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "group-leader-plan"]]
|
109271
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."name" = ? LIMIT 1 [["name", "groups"]]
|
109272
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 2]]
|
109273
|
+
[1m[35mCACHE (0.0ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 4], ["feature_id", 2]]
|
109274
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1[0m [["plan_id", 4], ["feature_id", 2]]
|
109275
|
+
[1m[35mCACHE (0.0ms)[0m SELECT COUNT(*) FROM "groups" WHERE "groups"."user_id" = ? [["user_id", 1]]
|
109276
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_plans".* FROM "paid_up_plans" WHERE "paid_up_plans"."stripe_id" = ? ORDER BY sort_order ASC LIMIT 1[0m [["stripe_id", "group-leader-plan"]]
|
109277
|
+
[1m[35mCACHE (0.0ms)[0m SELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."name" = ? LIMIT 1 [["name", "groups"]]
|
109278
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features".* FROM "paid_up_features" WHERE "paid_up_features"."id" = ? LIMIT 1[0m [["id", 2]]
|
109279
|
+
[1m[35mCACHE (0.0ms)[0m SELECT COUNT(*) FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? [["plan_id", 4], ["feature_id", 2]]
|
109280
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT "paid_up_features_plans".* FROM "paid_up_features_plans" WHERE "paid_up_features_plans"."plan_id" = ? AND "paid_up_features_plans"."feature_id" = ? ORDER BY "paid_up_features_plans"."id" ASC LIMIT 1[0m [["plan_id", 4], ["feature_id", 2]]
|
109281
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon.html.haml (0.1ms)
|
109282
|
+
Rendered /home/work/Gems/paid_up/app/views/paid_up/features/_abilities_table.html.haml (2589.9ms)
|
109283
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_icon_button_to.html.haml (0.3ms)
|
109284
|
+
Rendered /home/work/Gems/paid_up/app/views/paid_up/subscriptions/index.html.haml within layouts/application (3346.2ms)
|
109285
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_head_css.html.haml (0.1ms)
|
109286
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_alert.html.haml (1.1ms)
|
109287
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_alert_flash_messages.html.haml (2.1ms)
|
109288
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.2ms)
|
109289
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.1ms)
|
109290
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_item.html.haml (0.1ms)
|
109291
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_nav_list.html.haml (0.1ms)
|
109292
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_widgets.html.haml (0.1ms)
|
109293
|
+
Rendered /home/work/.rvm/gems/ruby-2.2.1@paid_up/gems/bootstrap_leather-0.5.4/app/views/bootstrap_leather/_footer_javascript.html.haml (0.0ms)
|
109294
|
+
Completed 200 OK in 4004ms (Views: 3447.3ms | ActiveRecord: 3.5ms)
|
109295
|
+
|
109296
|
+
|
109297
|
+
Started GET "/assets/jquery_ujs.self-8e98a7a072a6cee1372d19fff9ff3e6aa1e39a37d89d6f06861637d061113ee7.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:57 -0600
|
109298
|
+
|
109299
|
+
|
109300
|
+
Started GET "/assets/bootstrap/alert.self-15ce09eba576e56db3edfd87accc0ff48823df915169e350b4fd97290f96aee1.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:57 -0600
|
109301
|
+
|
109302
|
+
|
109303
|
+
Started GET "/assets/bootstrap/button.self-37c62bff1d75f86f3348b8679873d5156d8b9938b62841038dca21690f4740f1.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:57 -0600
|
109304
|
+
|
109305
|
+
|
109306
|
+
Started GET "/assets/application.self-4b8455232921b510ace0cb80aa5c87e9a90226e2921e5b44bcd0304e0862f293.css?body=1" for 127.0.0.1 at 2015-05-20 07:17:57 -0600
|
109307
|
+
|
109308
|
+
|
109309
|
+
Started GET "/assets/bootstrap/affix.self-68d1a5161d04ca9fe1b9d9f4114d9426c7798bf90f2703a97aca35c8113469bb.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:57 -0600
|
109310
|
+
|
109311
|
+
|
109312
|
+
Started GET "/assets/jquery.self-d03a5518f45df77341bdbe6201ba3bfa547ebba8ed64f0ea56bfa5f96ea7c074.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:57 -0600
|
109313
|
+
|
109314
|
+
|
109315
|
+
Started GET "/assets/bootstrap/collapse.self-eeece00cd06a3d7cc071ab7845b549d4991edd0f0895e4be70fe40bac2fb5f4b.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:57 -0600
|
109316
|
+
|
109317
|
+
|
109318
|
+
Started GET "/assets/bootstrap/carousel.self-9aaab1a477b9c1156bab751cb8da47f77dace6da88eef8ae830e60f3cff3a8be.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:57 -0600
|
109319
|
+
|
109320
|
+
|
109321
|
+
Started GET "/assets/bootstrap/scrollspy.self-5ea180afe4404f83fc97d997833f2edefd34475b0b5ddab310e27abc2bbd5f2f.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:57 -0600
|
109322
|
+
|
109323
|
+
|
109324
|
+
Started GET "/assets/bootstrap/dropdown.self-a3998e7ca949c04cb86b5c635deb0abcc7a24dc02e81be66b8acfef02d811e45.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:57 -0600
|
109325
|
+
|
109326
|
+
|
109327
|
+
Started GET "/assets/bootstrap/transition.self-7742dca5e6acf313fbb217811b48468282cddf1a9baea5c89ec92e367ef242cb.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:58 -0600
|
109328
|
+
|
109329
|
+
|
109330
|
+
Started GET "/assets/bootstrap/tab.self-e1bba7115c90301056ee94c4716de2fcbe4498015def2dab9ff9879f339bd245.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:58 -0600
|
109331
|
+
|
109332
|
+
|
109333
|
+
Started GET "/assets/bootstrap/modal.self-f2759e138605770e60526c00c6d86cbb3378da203641f9d6b204c9f0192b9267.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:58 -0600
|
109334
|
+
|
109335
|
+
|
109336
|
+
Started GET "/assets/bootstrap/tooltip.self-c3b5c16f394ab9c0391db4431aac4f2d2ddf1bba4c5d3228ed343de05ecc8e83.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:58 -0600
|
109337
|
+
|
109338
|
+
|
109339
|
+
Started GET "/assets/bootstrap-sprockets.self-fbfa5ad7d9aa0afe439ec4ff3883acc4cb92b62cb67c40d674320c9aa1d4642d.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:58 -0600
|
109340
|
+
|
109341
|
+
|
109342
|
+
Started GET "/assets/bootstrap/popover.self-2674d99c3ab0415dba0b958a80b3840f70ff6368b155d890306c0291be49453b.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:58 -0600
|
109343
|
+
|
109344
|
+
|
109345
|
+
Started GET "/assets/application.self-3b8dabdc891efe46b9a144b400ad69e37d7e5876bdc39dee783419a69d7ca819.js?body=1" for 127.0.0.1 at 2015-05-20 07:17:58 -0600
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paid_up
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karen Lundgren
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -301,7 +301,7 @@ files:
|
|
301
301
|
- app/helpers/paid_up/paid_up_helper.rb
|
302
302
|
- app/helpers/paid_up/plans_helper.rb
|
303
303
|
- app/helpers/paid_up/subscriptions_helper.rb
|
304
|
-
- app/models/ability.rb
|
304
|
+
- app/models/paid_up/ability.rb
|
305
305
|
- app/models/paid_up/feature.rb
|
306
306
|
- app/models/paid_up/features_plan.rb
|
307
307
|
- app/models/paid_up/plan.rb
|
@@ -352,6 +352,7 @@ files:
|
|
352
352
|
- spec/dummy/app/assets/javascripts/application.js
|
353
353
|
- spec/dummy/app/assets/stylesheets/application.css.scss
|
354
354
|
- spec/dummy/app/controllers/application_controller.rb
|
355
|
+
- spec/dummy/app/models/ability.rb
|
355
356
|
- spec/dummy/app/models/group.rb
|
356
357
|
- spec/dummy/app/models/user.rb
|
357
358
|
- spec/dummy/app/views/layouts/application.html.haml
|
data/app/models/ability.rb
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
class Ability
|
2
|
-
include CanCan::Ability
|
3
|
-
|
4
|
-
def initialize(user)
|
5
|
-
user ||= User.new # anonymous user (not logged in)
|
6
|
-
|
7
|
-
# Rails Application's initialization could go here.
|
8
|
-
|
9
|
-
initialize_paid_up(user)
|
10
|
-
end
|
11
|
-
|
12
|
-
def initialize_paid_up(user)
|
13
|
-
features = PaidUp::Feature.all
|
14
|
-
|
15
|
-
for feature in features
|
16
|
-
|
17
|
-
case feature.setting_type
|
18
|
-
when 'table_rows'
|
19
|
-
model = feature.name.classify.constantize
|
20
|
-
if user.table_rows_allowed(feature.name) > 0 || user.table_rows_allowed(feature.name) == -1
|
21
|
-
can :manage, model, :user => user
|
22
|
-
can :own, model
|
23
|
-
unless user.table_rows_remaining(feature.name) > 0
|
24
|
-
cannot :create, model
|
25
|
-
end
|
26
|
-
end
|
27
|
-
can :read, model
|
28
|
-
when 'boolean'
|
29
|
-
if user.plan.feature_setting feature.id
|
30
|
-
can :use, feature.name.to_sym
|
31
|
-
end
|
32
|
-
else
|
33
|
-
raise(:unknown_feature_type.l)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|