first-floor 0.2.0 → 0.3.0

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.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
- :minor: 2
3
+ :minor: 3
4
4
  :patch: 0
5
5
  :build:
data/first-floor.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "first-floor"
8
- s.version = "0.2.0"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nathan L. Walls"]
12
- s.date = "2012-02-12"
12
+ s.date = "2012-04-22"
13
13
  s.description = "Takes care of the basic seven CRUD controller methods against HTML, XML, JSON and YAML. This was very useful with Rails 2.x. Under Rails 3 and later, this isn't quite as necessary, since rendering became a lot easier."
14
14
  s.email = "nathan@wallscorp.us"
15
15
  s.extra_rdoc_files = [
@@ -30,7 +30,8 @@ class ActionController::FirstFloor < ActionController::Base
30
30
  else
31
31
  eval( "@#{obj_name} = @obj" )
32
32
 
33
- flash[:notice] = "Cannot create this #{obj_class}. There were some errors."
33
+ flash[:alert] = "Cannot create this #{obj_class}. There were some errors."
34
+ flash[:notice] = flash[:alert]
34
35
  flash[:status] = 400
35
36
  render_response( eval( "@#{obj_name}" ), 'new', 400 )
36
37
  end
@@ -58,7 +59,8 @@ class ActionController::FirstFloor < ActionController::Base
58
59
  else
59
60
  eval( "@#{obj_name} = @obj" )
60
61
 
61
- flash[:notice] = "#{obj_class} had some errors and was not updated."
62
+ flash[:alert] = "#{obj_class} had some errors and was not updated."
63
+ flash[:notice] = flash[:alert]
62
64
  flash[:status] = 400
63
65
  render_response( eval( "@#{obj_name}" ), 'edit', 400 )
64
66
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: first-floor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-12 00:00:00.000000000 Z
12
+ date: 2012-04-22 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Takes care of the basic seven CRUD controller methods against HTML, XML,
15
15
  JSON and YAML. This was very useful with Rails 2.x. Under Rails 3 and later, this