Skip to content

Commit

Permalink
no pry and cart admin
Browse files Browse the repository at this point in the history
  • Loading branch information
airled committed Apr 30, 2016
1 parent b566b30 commit 76ccded
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ gem 'activeadmin', github: 'activeadmin'
gem 'rails-i18n'

group :development, :test do
gem 'pry'
gem 'capistrano-rails', '~> 1.1.1'
gem 'byebug'
gem 'web-console', '~> 2.0'
Expand Down
7 changes: 0 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ GEM
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
method_source (0.8.2)
mime-types (2.6.1)
mini_portile (0.6.2)
minitest (5.8.0)
Expand All @@ -174,10 +173,6 @@ GEM
orm_adapter (0.5.0)
polyamorous (1.3.0)
activerecord (>= 3.0)
pry (0.10.3)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
quiet_assets (1.1.0)
railties (>= 3.1, < 5.0)
rack (1.6.4)
Expand Down Expand Up @@ -253,7 +248,6 @@ GEM
slim (3.0.6)
temple (~> 0.7.3)
tilt (>= 1.3.3, < 2.1)
slop (3.6.0)
spring (1.3.6)
sprockets (3.3.2)
rack (~> 1.0)
Expand Down Expand Up @@ -318,7 +312,6 @@ DEPENDENCIES
kaminari
libv8
mysql2 (~> 0.3.20)
pry
quiet_assets
rails (= 4.2.1)
rails-i18n
Expand Down
17 changes: 17 additions & 0 deletions app/admin/cart.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ActiveAdmin.register Cart do

# See permitted parameters documentation:
# https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
#
# permit_params :list, :of, :attributes, :on, :model
#
# or
#
# permit_params do
# permitted = [:permitted, :attributes]
# permitted << :other if params[:action] == 'create' && current_user.admin?
# permitted
# end


end

0 comments on commit 76ccded

Please sign in to comment.