lalala 4.0.0.dev.217 → 4.0.0.dev.218

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  module Lalala
2
2
  VERSION = "4.0.0"
3
- BUILD = "217"
3
+ BUILD = "218"
4
4
 
5
5
  if BUILD != ("{{BUILD_NUMBER" + "}}") # prevent sed replacement (see script/ci)
6
6
  BUILD_VERSION = "#{VERSION}.dev.#{BUILD}"
@@ -4,6 +4,7 @@ ActiveAdmin.register Article do
4
4
  f.inputs do
5
5
  f.input :title
6
6
  f.input :body
7
+ f.input :category, as: :select, collection: %w(A B C)
7
8
  f.input :image, as: :single_file
8
9
  end
9
10
  f.actions
@@ -1,5 +1,5 @@
1
1
  class Article < ActiveRecord::Base
2
- attr_accessible :body, :title
2
+ attr_accessible :body, :title, :category
3
3
 
4
4
  has_one_asset :image
5
5
 
@@ -0,0 +1,5 @@
1
+ class AddCategoryToArticles < ActiveRecord::Migration
2
+ def change
3
+ add_column :articles, :category, :string
4
+ end
5
+ end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20130729125648) do
14
+ ActiveRecord::Schema.define(:version => 20131113134503) do
15
15
 
16
16
  create_table "active_admin_comments", :force => true do |t|
17
17
  t.string "resource_id", :null => false
@@ -52,6 +52,7 @@ ActiveRecord::Schema.define(:version => 20130729125648) do
52
52
  t.text "body"
53
53
  t.datetime "created_at", :null => false
54
54
  t.datetime "updated_at", :null => false
55
+ t.string "category"
55
56
  end
56
57
 
57
58
  create_table "asset_translations", :force => true do |t|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lalala
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.dev.217
4
+ version: 4.0.0.dev.218
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Menke
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2013-10-30 00:00:00.000000000 Z
16
+ date: 2013-11-13 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: activeadmin
@@ -281,6 +281,7 @@ files:
281
281
  - README.md
282
282
  - Rakefile
283
283
  - app/assets/images/lalala/chosen/chosen-sprite.png
284
+ - app/assets/images/lalala/chosen/chosen-sprite@2x.png
284
285
  - app/assets/images/lalala/icons/accept.png
285
286
  - app/assets/images/lalala/icons/add.png
286
287
  - app/assets/images/lalala/icons/anchor.png
@@ -1504,6 +1505,7 @@ files:
1504
1505
  - test/dummy/db/.gitkeep
1505
1506
  - test/dummy/db/migrate/20130528092721_create_articles.rb
1506
1507
  - test/dummy/db/migrate/20130729125648_create_home_page.rb
1508
+ - test/dummy/db/migrate/20131113134503_add_category_to_articles.rb
1507
1509
  - test/dummy/db/schema.rb
1508
1510
  - test/dummy/lib/assets/.gitkeep
1509
1511
  - test/dummy/log/.gitkeep
@@ -1594,6 +1596,7 @@ test_files:
1594
1596
  - test/dummy/db/.gitkeep
1595
1597
  - test/dummy/db/migrate/20130528092721_create_articles.rb
1596
1598
  - test/dummy/db/migrate/20130729125648_create_home_page.rb
1599
+ - test/dummy/db/migrate/20131113134503_add_category_to_articles.rb
1597
1600
  - test/dummy/db/schema.rb
1598
1601
  - test/dummy/lib/assets/.gitkeep
1599
1602
  - test/dummy/log/.gitkeep