static_content 1.2.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,6 @@ class Content < ActiveRecord::Base
10
10
  raise ArgumentError.new("You must provide a default text for a content.") if options[:default].nil?
11
11
  find_or_initialize_by_slug(slug).tap do |content|
12
12
  if content.new_record?
13
- content.name = slug
14
13
  content.text = options[:default]
15
14
  content.save
16
15
  end
@@ -1,7 +1,6 @@
1
1
  class CreateContents < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :contents do |t|
4
- t.string :name
5
4
  t.string :slug
6
5
  t.text :text
7
6
 
@@ -1,3 +1,3 @@
1
1
  module StaticContent
2
- VERSION = "1.2.0"
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: static_content
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 2.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-06-20 00:00:00.000000000 Z
15
+ date: 2013-06-28 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails
@@ -160,7 +160,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  segments:
162
162
  - 0
163
- hash: 2073422727724312165
163
+ hash: -4120352764059079523
164
164
  required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  none: false
166
166
  requirements:
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  segments:
171
171
  - 0
172
- hash: 2073422727724312165
172
+ hash: -4120352764059079523
173
173
  requirements: []
174
174
  rubyforge_project:
175
175
  rubygems_version: 1.8.25