beautiful_scaffold 0.3.0.rc3 → 0.3.0.rc4

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/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.3.0.rc4
2
+
3
+ * Bugfix
4
+ * Refactoring and bugfix for input_type (number_field for integer, checkbox for boolean...)
5
+ * i18n for attributes (default option)
6
+
1
7
  == 0.3.0.rc3
2
8
 
3
9
  * Bugfix
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "beautiful_scaffold"
6
- s.version = "0.3.0.rc3"
6
+ s.version = "0.3.0.rc4"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.summary = "Beautiful Scaffold generate fully customizable scaffold"
9
9
  s.email = "claudel.sylvain@gmail.com"
@@ -79,7 +79,7 @@ module BeautifulScaffoldCommonMethods
79
79
  end
80
80
 
81
81
  def i18n_t_a(model, attribute)
82
- "t('#{attribute_path_i18n(model, attribute)}', :default => '#{model}')"
82
+ "t('#{attribute_path_i18n(model, attribute)}', :default => '#{attribute}')"
83
83
  end
84
84
 
85
85
  def i18n_t_m(model)
@@ -96,9 +96,10 @@ module BeautifulScaffoldCommonMethods
96
96
 
97
97
  def attributes
98
98
  # https://raw.github.com/rails/rails/master/railties/lib/rails/generators/generated_attribute.rb
99
+ puts require 'rails/generators/generated_attribute'
99
100
  return myattributes.map{ |a|
100
- require 'rails/generators/generated_attribute'
101
- Rails::Generators::GeneratedAttribute.new(*a.split(":"))
101
+ attr, type = a.split(":")
102
+ Rails::Generators::GeneratedAttribute.new(attr, type.to_sym)
102
103
  }
103
104
  end
104
105
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beautiful_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.rc3
4
+ version: 0.3.0.rc4
5
5
  prerelease: 6
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: 2013-07-10 00:00:00.000000000 Z
12
+ date: 2013-07-12 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Beautiful Scaffold generate a complete scaffold (sort, export, paginate
15
15
  and filter data) http://www.beautiful-scaffold.com