sbdevcart 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,47 +1,2 @@
1
- class ProductsController < ApplicationController
2
- before_filter :get_index, :only => [:index]
3
- def index
4
- @products = Product.all
5
- end
6
-
7
- def show
8
- @product = Product.find(params[:id])
9
- end
10
-
11
- def new
12
- @product = Product.new
13
- render :layout => false
14
- end
15
-
16
- def create
17
- @product = Product.new(params[:product])
18
- if @product.save
19
- flash[:notice] = "Successfully created product."
20
- redirect_to products_url
21
- else
22
- render :action => 'new'
23
- end
24
- end
25
-
26
- def edit
27
- @product = Product.find(params[:id])
28
- render :layout => false
29
- end
30
-
31
- def update
32
- @product = Product.find(params[:id])
33
- if @product.update_attributes(params[:product])
34
- flash[:notice] = "Successfully updated product."
35
- redirect_to products_url
36
- else
37
- render :action => 'edit'
38
- end
39
- end
40
-
41
- def destroy
42
- @product = Product.find(params[:id])
43
- @product.destroy
44
- flash[:notice] = "Successfully destroyed product."
45
- redirect_to products_url
46
- end
1
+ class ProductsController < SbdevCoreController
47
2
  end
@@ -1,3 +1,3 @@
1
1
  module Sbdevcart
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/sbdevcart.gemspec CHANGED
@@ -19,5 +19,5 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ["lib"]
20
20
 
21
21
  s.add_dependency('sbdevcore', ">= 0.0.8")
22
- s.add_dependency('aasm', ">= 2.2.0")
22
+ s.add_dependency('aasm', ">= 2.3.1")
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbdevcart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-24 00:00:00.000000000Z
12
+ date: 2011-09-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sbdevcore
16
- requirement: &2153589900 !ruby/object:Gem::Requirement
16
+ requirement: &2153268080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,18 +21,18 @@ dependencies:
21
21
  version: 0.0.8
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2153589900
24
+ version_requirements: *2153268080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: aasm
27
- requirement: &2153589400 !ruby/object:Gem::Requirement
27
+ requirement: &2153267420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
- version: 2.2.0
32
+ version: 2.3.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2153589400
35
+ version_requirements: *2153267420
36
36
  description: Sbdev Shopping Cart
37
37
  email:
38
38
  - aosalias@gmail.com