active_scaffold 3.0.26 → 3.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -1
- data/{frontends/default → app/assets}/images/add.gif +0 -0
- data/{frontends/default → app/assets}/images/arrow_down.gif +0 -0
- data/{frontends/default → app/assets}/images/arrow_up.gif +0 -0
- data/{frontends/default → app/assets}/images/close.gif +0 -0
- data/{frontends/default → app/assets}/images/close_touch.png +0 -0
- data/{frontends/default → app/assets}/images/config.png +0 -0
- data/{frontends/default → app/assets}/images/cross.png +0 -0
- data/{frontends/default → app/assets}/images/gears.png +0 -0
- data/{frontends/default → app/assets}/images/indicator-small.gif +0 -0
- data/{frontends/default → app/assets}/images/indicator.gif +0 -0
- data/{frontends/default → app/assets}/images/magnifier.png +0 -0
- data/app/assets/javascripts/active_scaffold.js.erb +16 -0
- data/{frontends/default → app/assets}/javascripts/jquery/active_scaffold.js +16 -28
- data/app/assets/javascripts/jquery/active_scaffold.js~ +1036 -0
- data/{lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js → app/assets/javascripts/jquery/date_picker_bridge.js.erb} +3 -1
- data/{frontends/default → app/assets}/javascripts/jquery/jquery.editinplace.js +0 -0
- data/app/assets/javascripts/prototype/active_scaffold.js +1033 -0
- data/{frontends/default/javascripts/prototype/active_scaffold.js → app/assets/javascripts/prototype/active_scaffold.js~} +1 -0
- data/{frontends/default → app/assets}/javascripts/prototype/dhtml_history.js +0 -0
- data/{frontends/default → app/assets}/javascripts/prototype/form_enhancements.js +0 -0
- data/{frontends/default → app/assets}/javascripts/prototype/rico_corner.js +0 -0
- data/{frontends/default/stylesheets/stylesheet-ie.css → app/assets/stylesheets/active_scaffold-ie.css} +0 -0
- data/{frontends/default/stylesheets/stylesheet.css → app/assets/stylesheets/active_scaffold.css.erb} +29 -24
- data/{lib/active_scaffold/locale → config/locales}/de.yml +3 -0
- data/{lib/active_scaffold/locale → config/locales}/en.yml +3 -0
- data/{lib/active_scaffold/locale → config/locales}/es.yml +5 -0
- data/{lib/active_scaffold/locale → config/locales}/fr.yml +3 -0
- data/{lib/active_scaffold/locale → config/locales}/hu.yml +13 -2
- data/{lib/active_scaffold/locale → config/locales}/ja.yml +9 -0
- data/{lib/active_scaffold/locale → config/locales}/ru.yml +3 -0
- data/frontends/default/views/_form.html.erb +1 -1
- data/frontends/default/views/_form_association.html.erb +1 -5
- data/frontends/default/views/_horizontal_subform.html.erb +7 -4
- data/frontends/default/views/_horizontal_subform.html.erb~ +2 -5
- data/frontends/default/views/_horizontal_subform_footer.html.erb +0 -0
- data/frontends/default/views/_horizontal_subform_header.html.erb +1 -1
- data/frontends/default/views/_horizontal_subform_header.html.erb~ +1 -1
- data/frontends/default/views/_horizontal_subform_record.html.erb~ +1 -1
- data/frontends/default/views/_list_actions.html.erb +1 -1
- data/frontends/default/views/_list_messages.html.erb +1 -3
- data/frontends/default/views/_render_field.js.erb +20 -0
- data/frontends/default/views/_row.html.erb +3 -9
- data/frontends/default/views/_show.html.erb +2 -2
- data/frontends/default/views/add_existing.js.erb +20 -0
- data/frontends/default/views/destroy.js.erb +24 -0
- data/frontends/default/views/{edit_associated.js.rjs → edit_associated.js.erb} +3 -2
- data/frontends/default/views/form_messages.js.erb +1 -0
- data/frontends/default/views/list.js.erb +1 -0
- data/frontends/default/views/mark.js.rjs +6 -0
- data/frontends/default/views/on_action_update.js.erb +13 -0
- data/frontends/default/views/{on_create.js.erb~ → on_create.js.erb} +0 -0
- data/frontends/default/views/on_mark_all.js.erb +12 -0
- data/frontends/default/views/{on_update.js.erb~ → on_update.js.erb} +0 -0
- data/frontends/default/views/render_field.js.erb +1 -0
- data/frontends/default/views/search.html.erb +1 -1
- data/frontends/default/views/{update_column.js.erb~ → update_column.js.erb} +3 -3
- data/frontends/default/views/update_row.js.erb +1 -0
- data/lib/active_scaffold.rb +22 -46
- data/lib/active_scaffold/actions/core.rb +14 -6
- data/lib/active_scaffold/actions/core.rb~ +3 -3
- data/lib/active_scaffold/actions/create.rb +2 -5
- data/lib/active_scaffold/actions/create.rb~ +3 -2
- data/lib/active_scaffold/actions/delete.rb +1 -0
- data/lib/active_scaffold/actions/field_search.rb +1 -1
- data/lib/active_scaffold/actions/list.rb +10 -6
- data/lib/active_scaffold/actions/list.rb~ +3 -3
- data/lib/active_scaffold/actions/mark.rb +8 -8
- data/lib/active_scaffold/actions/nested.rb +2 -9
- data/lib/active_scaffold/actions/nested.rb~ +5 -7
- data/lib/active_scaffold/actions/search.rb +2 -1
- data/lib/active_scaffold/actions/subform.rb +1 -5
- data/lib/active_scaffold/actions/update.rb +1 -4
- data/lib/active_scaffold/actions/update.rb~ +5 -5
- data/lib/active_scaffold/attribute_params.rb +15 -26
- data/lib/active_scaffold/attribute_params.rb~ +1 -2
- data/lib/active_scaffold/bridges.rb +61 -0
- data/lib/active_scaffold/bridges/ancestry.rb +5 -0
- data/lib/active_scaffold/bridges/ancestry/{lib/ancestry_bridge.rb → ancestry_bridge.rb} +3 -3
- data/lib/active_scaffold/bridges/{calendar_date_select/bridge.rb → calendar_date_select.rb} +13 -5
- data/lib/active_scaffold/bridges/calendar_date_select/{lib/as_cds_bridge.rb → as_cds_bridge.rb} +4 -20
- data/lib/active_scaffold/bridges/cancan.rb +15 -0
- data/lib/active_scaffold/bridges/cancan/{lib/cancan_bridge.rb → cancan_bridge.rb} +2 -2
- data/lib/active_scaffold/bridges/carrierwave.rb +12 -0
- data/lib/active_scaffold/bridges/carrierwave/carrierwave_bridge.rb +31 -0
- data/lib/active_scaffold/bridges/carrierwave/carrierwave_bridge_helpers.rb +10 -0
- data/lib/active_scaffold/bridges/carrierwave/{lib/form_ui.rb → form_ui.rb} +0 -0
- data/lib/active_scaffold/bridges/carrierwave/{lib/list_ui.rb → list_ui.rb} +1 -1
- data/lib/active_scaffold/bridges/country_helper.rb +9 -0
- data/lib/active_scaffold/bridges/country_helper/{lib/country_helper_bridge.rb → country_helper_bridge.rb} +5 -5
- data/lib/active_scaffold/bridges/date_picker.rb +23 -0
- data/lib/active_scaffold/bridges/date_picker/ext.rb +54 -0
- data/lib/active_scaffold/bridges/date_picker/helper.rb +188 -0
- data/lib/active_scaffold/bridges/dragonfly.rb +9 -0
- data/lib/active_scaffold/bridges/dragonfly/dragonfly_bridge.rb +34 -0
- data/lib/active_scaffold/bridges/dragonfly/dragonfly_bridge_helpers.rb +10 -0
- data/lib/active_scaffold/bridges/dragonfly/{lib/form_ui.rb → form_ui.rb} +0 -0
- data/lib/active_scaffold/bridges/dragonfly/{lib/list_ui.rb → list_ui.rb} +2 -2
- data/lib/active_scaffold/bridges/file_column.rb +11 -0
- data/lib/active_scaffold/bridges/file_column/{lib/as_file_column_bridge.rb → as_file_column_bridge.rb} +2 -2
- data/lib/active_scaffold/bridges/file_column/file_column_helpers.rb +57 -0
- data/lib/active_scaffold/bridges/file_column/{lib/form_ui.rb → form_ui.rb} +2 -2
- data/lib/active_scaffold/bridges/file_column/{lib/list_ui.rb → list_ui.rb} +0 -0
- data/lib/active_scaffold/bridges/paperclip.rb +12 -0
- data/lib/active_scaffold/bridges/paperclip/{lib/form_ui.rb → form_ui.rb} +0 -0
- data/lib/active_scaffold/bridges/paperclip/{lib/list_ui.rb → list_ui.rb} +3 -3
- data/lib/active_scaffold/bridges/paperclip/paperclip_bridge.rb +36 -0
- data/lib/active_scaffold/bridges/paperclip/paperclip_bridge_helpers.rb +24 -0
- data/lib/active_scaffold/bridges/record_select.rb +11 -0
- data/lib/active_scaffold/bridges/record_select/{lib/record_select_bridge.rb → helpers.rb} +5 -16
- data/lib/active_scaffold/bridges/record_select/helpers.rb~ +9 -14
- data/lib/active_scaffold/bridges/semantic_attributes.rb +5 -0
- data/lib/active_scaffold/bridges/semantic_attributes/{lib/semantic_attributes_bridge.rb → column.rb} +3 -3
- data/lib/active_scaffold/bridges/tiny_mce.rb +5 -0
- data/lib/active_scaffold/bridges/tiny_mce/{lib/tiny_mce_bridge.rb → helpers.rb} +16 -8
- data/lib/active_scaffold/config/base.rb +9 -1
- data/lib/active_scaffold/config/core.rb +1 -1
- data/lib/active_scaffold/config/create.rb +3 -10
- data/lib/active_scaffold/config/delete.rb +1 -2
- data/lib/active_scaffold/config/field_search.rb +1 -2
- data/lib/active_scaffold/config/form.rb +2 -6
- data/lib/active_scaffold/config/list.rb +8 -2
- data/lib/active_scaffold/config/nested.rb +2 -6
- data/lib/active_scaffold/config/search.rb +6 -2
- data/lib/active_scaffold/config/show.rb +1 -4
- data/lib/active_scaffold/config/subform.rb +1 -1
- data/lib/active_scaffold/config/update.rb +1 -6
- data/lib/active_scaffold/data_structures/action_columns.rb +3 -0
- data/lib/active_scaffold/data_structures/action_link.rb +14 -10
- data/lib/active_scaffold/data_structures/bridge.rb +22 -0
- data/lib/active_scaffold/data_structures/column.rb +36 -4
- data/lib/active_scaffold/data_structures/nested_info.rb +4 -4
- data/lib/active_scaffold/data_structures/set.rb +1 -6
- data/lib/active_scaffold/data_structures/sorting.rb +2 -2
- data/lib/active_scaffold/engine.rb +4 -0
- data/lib/active_scaffold/extensions/action_controller_rendering.rb +2 -2
- data/lib/active_scaffold/extensions/action_controller_rendering.rb~ +1 -1
- data/lib/active_scaffold/extensions/action_view_rendering.rb +90 -93
- data/lib/active_scaffold/extensions/action_view_rendering.rb~ +1 -13
- data/lib/active_scaffold/extensions/active_association_reflection.rb +16 -7
- data/lib/active_scaffold/extensions/cache_association.rb +16 -0
- data/lib/active_scaffold/extensions/reverse_associations.rb +15 -13
- data/lib/active_scaffold/extensions/unsaved_associated.rb +1 -1
- data/lib/active_scaffold/finder.rb +40 -23
- data/lib/active_scaffold/finder.rb~ +3 -11
- data/lib/active_scaffold/helpers/association_helpers.rb +1 -1
- data/lib/active_scaffold/helpers/controller_helpers.rb +9 -1
- data/lib/active_scaffold/helpers/controller_helpers.rb~ +12 -5
- data/lib/active_scaffold/helpers/form_column_helpers.rb +20 -21
- data/lib/active_scaffold/helpers/form_column_helpers.rb~ +2 -1
- data/lib/active_scaffold/helpers/id_helpers.rb +5 -5
- data/lib/active_scaffold/helpers/list_column_helpers.rb +14 -24
- data/lib/active_scaffold/helpers/list_column_helpers.rb~ +15 -20
- data/lib/active_scaffold/helpers/search_column_helpers.rb +10 -1
- data/lib/active_scaffold/helpers/search_column_helpers.rb~ +1 -1
- data/lib/active_scaffold/helpers/view_helpers.rb +14 -40
- data/lib/active_scaffold/helpers/view_helpers.rb~ +3 -3
- data/lib/active_scaffold/version.rb +2 -2
- data/lib/active_scaffold_env.rb +0 -2
- data/test/bridges/active_scaffold_dependent_protect_test.rb +34 -0
- data/test/bridges/bridge_test.rb +43 -0
- data/test/bridges/company.rb +81 -0
- data/test/bridges/paperclip_test.rb +68 -0
- data/test/bridges/tiny_mce_test.rb +27 -0
- data/test/bridges/unobtrusive_date_picker_test.rb +49 -0
- data/test/bridges/validation_reflection_test.rb +57 -0
- data/test/config/base_test.rb +1 -1
- data/test/config/core_test.rb +58 -0
- data/test/config/create_test.rb +8 -5
- data/test/config/delete_test.rb +33 -0
- data/test/config/field_search_test.rb +47 -0
- data/test/config/list_test.rb +64 -9
- data/test/config/nested_test.rb +62 -0
- data/test/config/search_test.rb +60 -0
- data/test/config/show_test.rb +5 -5
- data/test/config/subform_test.rb +17 -0
- data/test/config/update_test.rb +27 -4
- data/test/helpers/list_column_helpers_test.rb +16 -5
- data/test/helpers/pagination_helpers_test.rb +4 -0
- data/test/misc/attribute_params_test.rb +37 -1
- data/test/misc/finder_test.rb +0 -1
- data/test/misc/lang_test.rb +2 -3
- data/test/mock_app/public/javascripts/active_scaffold/default/active_scaffold.js +2 -2
- data/test/mock_app/public/stylesheets/active_scaffold/default/stylesheet.css +13 -7
- metadata +137 -154
- data/frontends/default/views/_list_with_header.html.erb~ +0 -32
- data/frontends/default/views/_render_field.js.rjs +0 -14
- data/frontends/default/views/_show.html.erb~ +0 -8
- data/frontends/default/views/_update_form.html.erb~ +0 -6
- data/frontends/default/views/add_existing.js.erb~ +0 -18
- data/frontends/default/views/add_existing.js.rjs +0 -17
- data/frontends/default/views/destroy.js.rjs +0 -23
- data/frontends/default/views/form_messages.js.rjs +0 -1
- data/frontends/default/views/list.js.rjs +0 -1
- data/frontends/default/views/on_action_update.js.rjs +0 -10
- data/frontends/default/views/on_create.js.rjs +0 -41
- data/frontends/default/views/on_mark_all.js.rjs +0 -12
- data/frontends/default/views/on_update.js.rjs +0 -28
- data/frontends/default/views/render_field.js.rjs +0 -1
- data/frontends/default/views/update_column.js.rjs +0 -13
- data/frontends/default/views/update_row.js.rjs +0 -1
- data/lib/active_scaffold.rb~ +0 -362
- data/lib/active_scaffold/bridges/ancestry/bridge.rb +0 -5
- data/lib/active_scaffold/bridges/bridge.rb +0 -59
- data/lib/active_scaffold/bridges/cancan/bridge.rb +0 -12
- data/lib/active_scaffold/bridges/carrierwave/bridge.rb +0 -9
- data/lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge.rb +0 -33
- data/lib/active_scaffold/bridges/carrierwave/lib/carrierwave_bridge_helpers.rb +0 -12
- data/lib/active_scaffold/bridges/country_helper/bridge.rb +0 -9
- data/lib/active_scaffold/bridges/date_picker/bridge.rb +0 -24
- data/lib/active_scaffold/bridges/date_picker/lib/datepicker_bridge.rb +0 -234
- data/lib/active_scaffold/bridges/dragonfly/bridge.rb +0 -9
- data/lib/active_scaffold/bridges/dragonfly/lib/dragonfly_bridge.rb +0 -36
- data/lib/active_scaffold/bridges/dragonfly/lib/dragonfly_bridge_helpers.rb +0 -12
- data/lib/active_scaffold/bridges/file_column/bridge.rb +0 -11
- data/lib/active_scaffold/bridges/file_column/lib/file_column_helpers.rb +0 -59
- data/lib/active_scaffold/bridges/paperclip/bridge.rb +0 -12
- data/lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge.rb +0 -38
- data/lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge_helpers.rb +0 -26
- data/lib/active_scaffold/bridges/record_select/bridge.rb +0 -5
- data/lib/active_scaffold/bridges/semantic_attributes/bridge.rb +0 -5
- data/lib/active_scaffold/bridges/shared/date_bridge.rb~ +0 -209
- data/lib/active_scaffold/bridges/tiny_mce/bridge.rb +0 -5
- data/lib/active_scaffold/bridges/validation_reflection/bridge.rb +0 -8
- data/lib/active_scaffold/bridges/validation_reflection/lib/validation_reflection_bridge.rb +0 -21
- data/lib/active_scaffold/config/base.rb~ +0 -70
- data/lib/active_scaffold/config/nested.rb~ +0 -41
- data/lib/active_scaffold/constraints.rb~ +0 -186
- data/lib/active_scaffold/data_structures/action_link.rb~ +0 -179
- data/lib/active_scaffold/data_structures/nested_info.rb~ +0 -123
- data/lib/active_scaffold/extensions/action_view_resolver.rb +0 -7
- data/lib/active_scaffold/extensions/active_association_reflection.rb~ +0 -22
- data/lib/active_scaffold/extensions/unsaved_associated.rb~ +0 -62
- data/lib/active_scaffold_assets.rb +0 -45
- data/lib/generators/active_scaffold_setup/USAGE +0 -10
- data/lib/generators/active_scaffold_setup/active_scaffold_setup_generator.rb +0 -59
data/test/config/show_test.rb
CHANGED
@@ -10,10 +10,6 @@ class Config::ShowTest < Test::Unit::TestCase
|
|
10
10
|
@config.show.link = @default_link
|
11
11
|
end
|
12
12
|
|
13
|
-
def test_default_options
|
14
|
-
assert_equal 'Show Modelstub', @config.show.label
|
15
|
-
end
|
16
|
-
|
17
13
|
def test_link_defaults
|
18
14
|
link = @config.show.link
|
19
15
|
assert !link.page?
|
@@ -36,8 +32,12 @@ class Config::ShowTest < Test::Unit::TestCase
|
|
36
32
|
end
|
37
33
|
|
38
34
|
def test_label
|
39
|
-
label = '
|
35
|
+
label = 'show monkeys'
|
40
36
|
@config.show.label = label
|
41
37
|
assert_equal label, @config.show.label
|
38
|
+
I18n.backend.store_translations :en, :active_scaffold => {:view_model => 'View %{model}'}
|
39
|
+
@config.show.label = :view_model
|
40
|
+
assert_equal 'View ModelStub', @config.show.label
|
41
|
+
assert_equal 'View record', @config.show.label('record')
|
42
42
|
end
|
43
43
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '../test_helper.rb')
|
2
|
+
|
3
|
+
class Config::SubformTest < Test::Unit::TestCase
|
4
|
+
def setup
|
5
|
+
@config = ActiveScaffold::Config::Core.new :model_stub
|
6
|
+
end
|
7
|
+
|
8
|
+
def test_defaults
|
9
|
+
assert_equal :horizontal, @config.subform.layout
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_setting_layout
|
13
|
+
layout = :vertical
|
14
|
+
@config.subform.layout = layout
|
15
|
+
assert_equal layout, @config.subform.layout
|
16
|
+
end
|
17
|
+
end
|
data/test/config/update_test.rb
CHANGED
@@ -3,15 +3,38 @@ require File.join(File.dirname(__FILE__), '../test_helper.rb')
|
|
3
3
|
class Config::UpdateTest < Test::Unit::TestCase
|
4
4
|
def setup
|
5
5
|
@config = ActiveScaffold::Config::Core.new :model_stub
|
6
|
-
@update = @config.update
|
7
|
-
|
8
|
-
@config._load_action_columns
|
9
6
|
end
|
10
7
|
|
11
8
|
def test__params_for_columns__returns_all_params
|
9
|
+
@config._load_action_columns
|
12
10
|
@config.columns[:a].params.add :keep_a, :a_temp
|
13
|
-
|
14
11
|
assert @config.columns[:a].params.include?(:keep_a)
|
15
12
|
assert @config.columns[:a].params.include?(:a_temp)
|
16
13
|
end
|
14
|
+
|
15
|
+
def test_default_options
|
16
|
+
assert !@config.update.persistent
|
17
|
+
assert !@config.update.nested_links
|
18
|
+
assert_equal 'Update ModelStub', @config.update.label
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_persistent
|
22
|
+
@config.update.persistent = true
|
23
|
+
assert @config.update.persistent
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_nested_links
|
27
|
+
@config.update.nested_links = true
|
28
|
+
assert @config.update.nested_links
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_label
|
32
|
+
label = 'update new monkeys'
|
33
|
+
@config.update.label = label
|
34
|
+
assert_equal label, @config.update.label
|
35
|
+
I18n.backend.store_translations :en, :active_scaffold => {:change_model => 'Change %{model}'}
|
36
|
+
@config.update.label = :change_model
|
37
|
+
assert_equal 'Change ModelStub', @config.update.label
|
38
|
+
assert_equal 'Change record', @config.update.label('record')
|
39
|
+
end
|
17
40
|
end
|
@@ -6,22 +6,33 @@ class ListColumnHelpersTest < ActionView::TestCase
|
|
6
6
|
|
7
7
|
def setup
|
8
8
|
@column = ActiveScaffold::DataStructures::Column.new(:a, ModelStub)
|
9
|
+
@column.form_ui = :select
|
9
10
|
@record = stub(:a => 'value_2')
|
10
|
-
@config = stub(:list => stub(:empty_field_text => '-'))
|
11
|
+
@config = stub(:list => stub(:empty_field_text => '-', :association_join_text => ', '))
|
12
|
+
@association_column = ActiveScaffold::DataStructures::Column.new(:b, ModelStub)
|
13
|
+
@association_column.stubs(:association).returns(stub(:macro => :has_many))
|
11
14
|
end
|
12
15
|
|
13
16
|
def test_options_for_select_list_ui_for_simple_column
|
14
17
|
@column.options[:options] = [:value_1, :value_2, :value_3]
|
15
|
-
assert_equal 'Value 2',
|
18
|
+
assert_equal 'Value 2', format_column_value(@record, @column)
|
16
19
|
|
17
20
|
@column.options[:options] = %w(value_1 value_2 value_3)
|
18
|
-
assert_equal 'value_2',
|
21
|
+
assert_equal 'value_2', format_column_value(@record, @column)
|
19
22
|
|
20
23
|
@column.options[:options] = [%w(text_1 value_1), %w(text_2 value_2), %w(text_3 value_3)]
|
21
|
-
assert_equal 'text_2',
|
24
|
+
assert_equal 'text_2', format_column_value(@record, @column)
|
22
25
|
|
23
26
|
@column.options[:options] = [[:text_1, :value_1], [:text_2, :value_2], [:text_3, :value_3]]
|
24
|
-
assert_equal 'Text 2',
|
27
|
+
assert_equal 'Text 2', format_column_value(@record, @column)
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_association_join_text
|
31
|
+
value = [1, 2, 3, 4].map(&:to_s)
|
32
|
+
value.each {|v| v.stubs(:to_label).returns(v)}
|
33
|
+
assert_equal '1, 2, 3, … (4)', format_association_value(value, @association_column, value.size)
|
34
|
+
@config.list.stubs(:association_join_text => ',<br/>')
|
35
|
+
assert_equal '1,<br/>2,<br/>3,<br/>… (4)', format_association_value(value, @association_column, value.size)
|
25
36
|
end
|
26
37
|
|
27
38
|
private
|
@@ -19,6 +19,12 @@ class AttributeParamsTest < Test::Unit::TestCase
|
|
19
19
|
:delimiter => '.',
|
20
20
|
:separator => ','
|
21
21
|
}}
|
22
|
+
I18n.backend.store_translations :ru, :number => {:currency => {
|
23
|
+
:format => {
|
24
|
+
:separator => ',',
|
25
|
+
:delimiter => ''
|
26
|
+
}
|
27
|
+
}}
|
22
28
|
|
23
29
|
@config = config_for('number_model')
|
24
30
|
class << @config.list.columns
|
@@ -101,9 +107,39 @@ class AttributeParamsTest < Test::Unit::TestCase
|
|
101
107
|
assert_equal 1234000.1, convert_number('1.234.000,100')
|
102
108
|
end
|
103
109
|
|
110
|
+
def test_english_currency_format_with_decimal_separator_using_russian_language
|
111
|
+
I18n.locale = :ru
|
112
|
+
assert_equal 0.1, convert_number('.1', :currency)
|
113
|
+
assert_equal 0.1, convert_number('0.1', :currency)
|
114
|
+
assert_equal 0.12, convert_number('+0.12', :currency)
|
115
|
+
assert_equal -0.12, convert_number('-0.12', :currency)
|
116
|
+
assert_equal 9.1, convert_number('9.1', :currency)
|
117
|
+
assert_equal 90.1, convert_number('90.1', :currency)
|
118
|
+
end
|
119
|
+
|
120
|
+
def test_russian_currency_format_with_decimal_separator_using_russian_language
|
121
|
+
I18n.locale = :ru
|
122
|
+
assert_equal 0.1, convert_number(',1', :currency)
|
123
|
+
assert_equal 0.1, convert_number(',100', :currency)
|
124
|
+
assert_equal 0.1, convert_number('0,1', :currency)
|
125
|
+
assert_equal 0.345, convert_number('0,345', :currency)
|
126
|
+
assert_equal 0.345, convert_number('+0,345', :currency)
|
127
|
+
assert_equal -0.345, convert_number('-0,345', :currency)
|
128
|
+
assert_equal 9.1, convert_number('9,1', :currency)
|
129
|
+
assert_equal 90.1, convert_number('90,1', :currency)
|
130
|
+
assert_equal 9.1, convert_number('9,100', :currency)
|
131
|
+
end
|
132
|
+
|
133
|
+
def test_english_format_with_decimal_separator_with_no_localized_format
|
134
|
+
I18n.locale = :ru
|
135
|
+
assert_equal 0.1, convert_number('.1')
|
136
|
+
assert_equal 0.1, convert_number('0.1')
|
137
|
+
end
|
138
|
+
|
104
139
|
private
|
105
|
-
def convert_number(value)
|
140
|
+
def convert_number(value, format = nil)
|
106
141
|
record = NumberModel.new
|
142
|
+
@config.columns[:number].options[:format] = format unless format.nil?
|
107
143
|
update_record_from_params(record, @config.list.columns, HashWithIndifferentAccess.new({:number => value}))
|
108
144
|
record.number
|
109
145
|
end
|
data/test/misc/finder_test.rb
CHANGED
@@ -80,7 +80,6 @@ class FinderTest < Test::Unit::TestCase
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def test_disabled_pagination
|
83
|
-
ModelStub.expects(:count).returns(85)
|
84
83
|
ModelStub.expects(:find).with(:all, Not(has_entries(:limit => 20, :offset => 0)))
|
85
84
|
page = @klass.send :find_page, :per_page => 20, :pagination => false
|
86
85
|
page.items
|
data/test/misc/lang_test.rb
CHANGED
@@ -3,10 +3,9 @@ require File.join(File.dirname(__FILE__), '../test_helper.rb')
|
|
3
3
|
class LocalizationTest < Test::Unit::TestCase
|
4
4
|
|
5
5
|
def test_localization
|
6
|
-
##
|
7
|
-
## test no language specified
|
8
|
-
##
|
9
6
|
assert_equal "Dutch", as_(:dutch)
|
7
|
+
assert_equal "dutch", as_('dutch')
|
8
|
+
I18n.backend.store_translations :en, :active_scaffold => {:create_model => 'Create %{model}'}
|
10
9
|
assert_equal "Create Test", as_(:create_model, :model => 'Test')
|
11
10
|
end
|
12
11
|
end
|
@@ -3,9 +3,9 @@ if (typeof Prototype == 'undefined')
|
|
3
3
|
warning = "ActiveScaffold Error: Prototype could not be found. Please make sure that your application's layout includes prototype.js (e.g. <%= javascript_include_tag :defaults %>) *before* it includes active_scaffold.js (e.g. <%= active_scaffold_includes %>).";
|
4
4
|
alert(warning);
|
5
5
|
}
|
6
|
-
if (Prototype.Version.substring(0, 3)
|
6
|
+
if (Prototype.Version.substring(0, 3) < '1.6')
|
7
7
|
{
|
8
|
-
warning = "ActiveScaffold Error: Prototype version 1.6.x is required. Please update prototype.js (rake rails:update:javascripts).";
|
8
|
+
warning = "ActiveScaffold Error: Prototype version 1.6.x or higher is required. Please update prototype.js (rake rails:update:javascripts).";
|
9
9
|
alert(warning);
|
10
10
|
}
|
11
11
|
if (!Element.Methods.highlight) Element.addMethods({highlight: Prototype.emptyFunction});
|
@@ -52,6 +52,10 @@ padding: 5px 20px 5px 5px;
|
|
52
52
|
color: #333;
|
53
53
|
}
|
54
54
|
|
55
|
+
.active-scaffold .mark_record_column {
|
56
|
+
width: 1px;
|
57
|
+
}
|
58
|
+
|
55
59
|
/* Header
|
56
60
|
======================== */
|
57
61
|
|
@@ -87,10 +91,6 @@ background-position: 1px 50%;
|
|
87
91
|
background-repeat: no-repeat;
|
88
92
|
}
|
89
93
|
|
90
|
-
.view .active-scaffold-header div.actions a {
|
91
|
-
float: left;
|
92
|
-
}
|
93
|
-
|
94
94
|
.blue-theme .active-scaffold-header div.actions a {
|
95
95
|
color: #fff;
|
96
96
|
}
|
@@ -295,7 +295,7 @@ background: transparent;
|
|
295
295
|
}
|
296
296
|
|
297
297
|
.active-scaffold .active-scaffold .active-scaffold-header {
|
298
|
-
margin-right:
|
298
|
+
margin-right: 25px;
|
299
299
|
}
|
300
300
|
|
301
301
|
.active-scaffold .active-scaffold .active-scaffold-header h2 {
|
@@ -315,7 +315,6 @@ right: 0px;
|
|
315
315
|
|
316
316
|
.active-scaffold .active-scaffold .active-scaffold-header div.actions a {
|
317
317
|
font: bold 11px verdana, sans-serif;
|
318
|
-
padding: 0 2px 1px 17px;
|
319
318
|
}
|
320
319
|
|
321
320
|
.blue-theme .active-scaffold .active-scaffold-header div.actions a,
|
@@ -525,7 +524,7 @@ margin: 0;
|
|
525
524
|
}
|
526
525
|
|
527
526
|
.active-scaffold .active-scaffold-header .loading-indicator {
|
528
|
-
margin-
|
527
|
+
margin-top: 3px;
|
529
528
|
}
|
530
529
|
|
531
530
|
/* Show
|
@@ -534,6 +533,9 @@ margin-bottom: 3px;
|
|
534
533
|
.active-scaffold .show-view dl {
|
535
534
|
margin-left: 5px;
|
536
535
|
}
|
536
|
+
.active-scaffold .show-view dl dl {
|
537
|
+
margin-left: 0px;
|
538
|
+
}
|
537
539
|
|
538
540
|
.active-scaffold .show-view dt {
|
539
541
|
width: 12em;
|
@@ -554,6 +556,10 @@ margin-bottom: 5px;
|
|
554
556
|
/* Form
|
555
557
|
============================== */
|
556
558
|
|
559
|
+
.active-scaffold dl {
|
560
|
+
margin: 0;
|
561
|
+
}
|
562
|
+
|
557
563
|
.active-scaffold .submit {
|
558
564
|
font-weight: bold;
|
559
565
|
font-size: 14px;
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 3.
|
8
|
+
- 1
|
9
|
+
- 3
|
10
|
+
version: 3.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Many, see README
|
@@ -15,10 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-10-06 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
21
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
22
22
|
none: false
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
@@ -27,12 +27,12 @@ dependencies:
|
|
27
27
|
segments:
|
28
28
|
- 0
|
29
29
|
version: "0"
|
30
|
-
requirement: *id001
|
31
|
-
prerelease: false
|
32
30
|
type: :development
|
33
31
|
name: shoulda
|
32
|
+
version_requirements: *id001
|
33
|
+
prerelease: false
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
|
-
|
35
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
36
36
|
none: false
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
@@ -43,12 +43,12 @@ dependencies:
|
|
43
43
|
- 0
|
44
44
|
- 0
|
45
45
|
version: 1.0.0
|
46
|
-
requirement: *id002
|
47
|
-
prerelease: false
|
48
46
|
type: :development
|
49
47
|
name: bundler
|
48
|
+
version_requirements: *id002
|
49
|
+
prerelease: false
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
|
-
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ">="
|
@@ -57,54 +57,26 @@ dependencies:
|
|
57
57
|
segments:
|
58
58
|
- 0
|
59
59
|
version: "0"
|
60
|
-
requirement: *id003
|
61
|
-
prerelease: false
|
62
60
|
type: :development
|
63
61
|
name: rcov
|
64
|
-
|
65
|
-
version_requirements: &id004 !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
|
-
requirements:
|
68
|
-
- - ">="
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
hash: 3
|
71
|
-
segments:
|
72
|
-
- 0
|
73
|
-
version: "0"
|
74
|
-
requirement: *id004
|
75
|
-
prerelease: false
|
76
|
-
type: :runtime
|
77
|
-
name: render_component_vho
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
version_requirements: &id005 !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
|
-
requirements:
|
82
|
-
- - ">="
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
hash: 3
|
85
|
-
segments:
|
86
|
-
- 0
|
87
|
-
version: "0"
|
88
|
-
requirement: *id005
|
62
|
+
version_requirements: *id003
|
89
63
|
prerelease: false
|
90
|
-
type: :runtime
|
91
|
-
name: verification
|
92
64
|
- !ruby/object:Gem::Dependency
|
93
|
-
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
94
66
|
none: false
|
95
67
|
requirements:
|
96
68
|
- - ~>
|
97
69
|
- !ruby/object:Gem::Version
|
98
|
-
hash:
|
70
|
+
hash: 3
|
99
71
|
segments:
|
100
72
|
- 3
|
73
|
+
- 1
|
101
74
|
- 0
|
102
|
-
|
103
|
-
version: 3.0.0
|
104
|
-
requirement: *id006
|
105
|
-
prerelease: false
|
75
|
+
version: 3.1.0
|
106
76
|
type: :runtime
|
107
77
|
name: rails
|
78
|
+
version_requirements: *id004
|
79
|
+
prerelease: false
|
108
80
|
description: Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems.
|
109
81
|
email: activescaffold@googlegroups.com
|
110
82
|
executables: []
|
@@ -114,25 +86,36 @@ extensions: []
|
|
114
86
|
extra_rdoc_files:
|
115
87
|
- README
|
116
88
|
files:
|
117
|
-
-
|
118
|
-
-
|
119
|
-
-
|
120
|
-
-
|
121
|
-
-
|
122
|
-
-
|
123
|
-
-
|
124
|
-
-
|
125
|
-
-
|
126
|
-
-
|
127
|
-
-
|
128
|
-
-
|
129
|
-
-
|
130
|
-
-
|
131
|
-
-
|
132
|
-
-
|
133
|
-
-
|
134
|
-
-
|
135
|
-
-
|
89
|
+
- app/assets/images/add.gif
|
90
|
+
- app/assets/images/arrow_down.gif
|
91
|
+
- app/assets/images/arrow_up.gif
|
92
|
+
- app/assets/images/close.gif
|
93
|
+
- app/assets/images/close_touch.png
|
94
|
+
- app/assets/images/config.png
|
95
|
+
- app/assets/images/cross.png
|
96
|
+
- app/assets/images/gears.png
|
97
|
+
- app/assets/images/indicator-small.gif
|
98
|
+
- app/assets/images/indicator.gif
|
99
|
+
- app/assets/images/magnifier.png
|
100
|
+
- app/assets/javascripts/active_scaffold.js.erb
|
101
|
+
- app/assets/javascripts/jquery/active_scaffold.js
|
102
|
+
- app/assets/javascripts/jquery/date_picker_bridge.js.erb
|
103
|
+
- app/assets/javascripts/jquery/jquery.editinplace.js
|
104
|
+
- app/assets/javascripts/jquery/active_scaffold.js~
|
105
|
+
- app/assets/javascripts/prototype/active_scaffold.js
|
106
|
+
- app/assets/javascripts/prototype/dhtml_history.js
|
107
|
+
- app/assets/javascripts/prototype/form_enhancements.js
|
108
|
+
- app/assets/javascripts/prototype/rico_corner.js
|
109
|
+
- app/assets/javascripts/prototype/active_scaffold.js~
|
110
|
+
- app/assets/stylesheets/active_scaffold-ie.css
|
111
|
+
- app/assets/stylesheets/active_scaffold.css.erb
|
112
|
+
- config/locales/de.yml
|
113
|
+
- config/locales/en.yml
|
114
|
+
- config/locales/es.yml
|
115
|
+
- config/locales/fr.yml
|
116
|
+
- config/locales/hu.yml
|
117
|
+
- config/locales/ja.yml
|
118
|
+
- config/locales/ru.yml
|
136
119
|
- frontends/default/views/_add_existing_form.html.erb
|
137
120
|
- frontends/default/views/_create_form.html.erb
|
138
121
|
- frontends/default/views/_create_form_on_list.html.erb
|
@@ -155,56 +138,57 @@ files:
|
|
155
138
|
- frontends/default/views/_list_pagination_links.html.erb
|
156
139
|
- frontends/default/views/_list_record.html.erb
|
157
140
|
- frontends/default/views/_action_group.html.erb
|
141
|
+
- frontends/default/views/_render_field.js.erb
|
142
|
+
- frontends/default/views/_row.html.erb
|
158
143
|
- frontends/default/views/_messages.html.erb
|
159
|
-
- frontends/default/views/_base_form.html.erb
|
160
|
-
- frontends/default/views/_render_field.js.rjs
|
161
144
|
- frontends/default/views/_search.html.erb
|
162
145
|
- frontends/default/views/_show.html.erb
|
163
146
|
- frontends/default/views/list.html.erb
|
147
|
+
- frontends/default/views/list.js.erb
|
164
148
|
- frontends/default/views/_show_columns.html.erb
|
165
149
|
- frontends/default/views/_update_actions.html.erb
|
166
150
|
- frontends/default/views/_update_form.html.erb
|
167
151
|
- frontends/default/views/_vertical_subform.html.erb
|
168
152
|
- frontends/default/views/_vertical_subform_record.html.erb
|
169
|
-
- frontends/default/views/
|
170
|
-
- frontends/default/views/list.js.rjs
|
153
|
+
- frontends/default/views/_base_form.html.erb
|
171
154
|
- frontends/default/views/delete.html.erb
|
172
155
|
- frontends/default/views/add_existing_form.html.erb
|
173
156
|
- frontends/default/views/create.html.erb
|
174
|
-
- frontends/default/views/_list_messages.html.erb
|
175
157
|
- frontends/default/views/_human_conditions.html.erb
|
158
|
+
- frontends/default/views/_list_messages.html.erb
|
176
159
|
- frontends/default/views/field_search.html.erb
|
177
|
-
- frontends/default/views/add_existing.js.
|
160
|
+
- frontends/default/views/add_existing.js.erb
|
178
161
|
- frontends/default/views/search.html.erb
|
179
|
-
- frontends/default/views/destroy.js.
|
162
|
+
- frontends/default/views/destroy.js.erb
|
180
163
|
- frontends/default/views/update.html.erb
|
181
|
-
- frontends/default/views/_list_with_header.html.erb
|
182
164
|
- frontends/default/views/_list_pagination.html.erb
|
183
|
-
- frontends/default/views/show.html.erb
|
184
|
-
- frontends/default/views/form_messages.js.rjs
|
185
165
|
- frontends/default/views/_list_record_columns.html.erb
|
186
|
-
- frontends/default/views/
|
166
|
+
- frontends/default/views/show.html.erb
|
167
|
+
- frontends/default/views/_list_with_header.html.erb
|
187
168
|
- frontends/default/views/_search_attribute.html.erb
|
188
169
|
- frontends/default/views/action_confirmation.html.erb
|
189
|
-
- frontends/default/views/
|
190
|
-
- frontends/default/views/
|
191
|
-
- frontends/default/views/
|
192
|
-
- frontends/default/views/
|
193
|
-
- frontends/default/views/
|
194
|
-
- frontends/default/views/
|
195
|
-
- frontends/default/views/
|
170
|
+
- frontends/default/views/edit_associated.js.erb
|
171
|
+
- frontends/default/views/form_messages.js.erb
|
172
|
+
- frontends/default/views/mark.js.rjs
|
173
|
+
- frontends/default/views/on_action_update.js.erb
|
174
|
+
- frontends/default/views/on_create.js.erb
|
175
|
+
- frontends/default/views/on_mark_all.js.erb
|
176
|
+
- frontends/default/views/on_update.js.erb
|
177
|
+
- frontends/default/views/render_field.js.erb
|
178
|
+
- frontends/default/views/update_column.js.erb
|
196
179
|
- frontends/default/views/_base_form.html.erb~
|
180
|
+
- frontends/default/views/_horizontal_subform_footer.html.erb
|
181
|
+
- frontends/default/views/update_row.js.erb
|
197
182
|
- frontends/default/views/_form.html.erb~
|
198
183
|
- frontends/default/views/_row.html.erb~
|
199
184
|
- frontends/default/views/render_field.js.erb~
|
200
|
-
- frontends/default/views/
|
185
|
+
- frontends/default/views/_horizontal_subform_record.html.erb~
|
201
186
|
- frontends/default/views/_form_association_footer.html.erb~
|
202
187
|
- frontends/default/views/edit_associated.js.erb~
|
203
188
|
- frontends/default/views/_list_inline_adapter.html.erb~
|
204
189
|
- frontends/default/views/_form_association.html.erb~
|
205
190
|
- frontends/default/views/_vertical_subform.html.erb~
|
206
191
|
- frontends/default/views/_horizontal_subform.html.erb~
|
207
|
-
- frontends/default/views/_show.html.erb~
|
208
192
|
- frontends/default/views/_horizontal_subform_header.html.erb~
|
209
193
|
- frontends/default/views/_list_pagination.html.erb~
|
210
194
|
- frontends/default/views/_list_actions.html.erb~
|
@@ -212,12 +196,6 @@ files:
|
|
212
196
|
- frontends/default/views/_list_messages.html.erb~
|
213
197
|
- frontends/default/views/_render_field.js.erb~
|
214
198
|
- frontends/default/views/_action_group.html.erb~
|
215
|
-
- frontends/default/views/on_update.js.erb~
|
216
|
-
- frontends/default/views/on_create.js.erb~
|
217
|
-
- frontends/default/views/_horizontal_subform_record.html.erb~
|
218
|
-
- frontends/default/views/_list_with_header.html.erb~
|
219
|
-
- frontends/default/views/_update_form.html.erb~
|
220
|
-
- frontends/default/views/add_existing.js.erb~
|
221
199
|
- lib/active_scaffold.rb
|
222
200
|
- lib/active_scaffold_env.rb
|
223
201
|
- lib/active_scaffold/actions/core.rb
|
@@ -229,9 +207,9 @@ files:
|
|
229
207
|
- lib/active_scaffold/actions/show.rb
|
230
208
|
- lib/active_scaffold/actions/nested.rb
|
231
209
|
- lib/active_scaffold/actions/search.rb
|
210
|
+
- lib/active_scaffold/actions/mark.rb
|
232
211
|
- lib/active_scaffold/actions/subform.rb
|
233
212
|
- lib/active_scaffold/actions/update.rb
|
234
|
-
- lib/active_scaffold/actions/mark.rb
|
235
213
|
- lib/active_scaffold/actions/core.rb~
|
236
214
|
- lib/active_scaffold/actions/nested.rb~
|
237
215
|
- lib/active_scaffold/actions/update.rb~
|
@@ -254,8 +232,6 @@ files:
|
|
254
232
|
- lib/active_scaffold/config/update.rb
|
255
233
|
- lib/active_scaffold/config/mark.rb
|
256
234
|
- lib/active_scaffold/config/search.rb~
|
257
|
-
- lib/active_scaffold/config/nested.rb~
|
258
|
-
- lib/active_scaffold/config/base.rb~
|
259
235
|
- lib/active_scaffold/configurable.rb
|
260
236
|
- lib/active_scaffold/constraints.rb
|
261
237
|
- lib/active_scaffold/data_structures/action_columns.rb
|
@@ -268,9 +244,8 @@ files:
|
|
268
244
|
- lib/active_scaffold/data_structures/set.rb
|
269
245
|
- lib/active_scaffold/data_structures/sorting.rb
|
270
246
|
- lib/active_scaffold/data_structures/nested_info.rb
|
271
|
-
- lib/active_scaffold/data_structures/
|
247
|
+
- lib/active_scaffold/data_structures/bridge.rb
|
272
248
|
- lib/active_scaffold/data_structures/action_columns.rb~
|
273
|
-
- lib/active_scaffold/data_structures/action_link.rb~
|
274
249
|
- lib/active_scaffold/finder.rb
|
275
250
|
- lib/active_scaffold/helpers/association_helpers.rb
|
276
251
|
- lib/active_scaffold/helpers/controller_helpers.rb
|
@@ -289,59 +264,49 @@ files:
|
|
289
264
|
- lib/active_scaffold/helpers/list_column_helpers.rb~
|
290
265
|
- lib/active_scaffold/helpers/search_column_helpers.rb~
|
291
266
|
- lib/active_scaffold/active_record_permissions.rb
|
292
|
-
- lib/active_scaffold/
|
293
|
-
- lib/active_scaffold/
|
294
|
-
- lib/active_scaffold/
|
295
|
-
- lib/active_scaffold/
|
296
|
-
- lib/active_scaffold/
|
297
|
-
- lib/active_scaffold/
|
298
|
-
- lib/active_scaffold/
|
299
|
-
- lib/active_scaffold/bridges/
|
300
|
-
- lib/active_scaffold/bridges/
|
301
|
-
- lib/active_scaffold/bridges/
|
302
|
-
- lib/active_scaffold/bridges/
|
303
|
-
- lib/active_scaffold/bridges/
|
304
|
-
- lib/active_scaffold/bridges/
|
305
|
-
- lib/active_scaffold/bridges/
|
306
|
-
- lib/active_scaffold/bridges/
|
307
|
-
- lib/active_scaffold/bridges/
|
308
|
-
- lib/active_scaffold/bridges/
|
309
|
-
- lib/active_scaffold/bridges/
|
310
|
-
- lib/active_scaffold/bridges/
|
311
|
-
- lib/active_scaffold/bridges/
|
312
|
-
- lib/active_scaffold/bridges/
|
313
|
-
- lib/active_scaffold/bridges/
|
314
|
-
- lib/active_scaffold/bridges/
|
315
|
-
- lib/active_scaffold/bridges/
|
316
|
-
- lib/active_scaffold/bridges/
|
317
|
-
- lib/active_scaffold/bridges/
|
318
|
-
- lib/active_scaffold/bridges/
|
319
|
-
- lib/active_scaffold/bridges/dragonfly/lib/form_ui.rb
|
320
|
-
- lib/active_scaffold/bridges/dragonfly/lib/list_ui.rb
|
321
|
-
- lib/active_scaffold/bridges/paperclip/bridge.rb
|
322
|
-
- lib/active_scaffold/bridges/paperclip/lib/form_ui.rb
|
323
|
-
- lib/active_scaffold/bridges/paperclip/lib/list_ui.rb
|
324
|
-
- lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge.rb
|
325
|
-
- lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge_helpers.rb
|
326
|
-
- lib/active_scaffold/bridges/semantic_attributes/bridge.rb
|
327
|
-
- lib/active_scaffold/bridges/semantic_attributes/lib/semantic_attributes_bridge.rb
|
328
|
-
- lib/active_scaffold/bridges/tiny_mce/bridge.rb
|
329
|
-
- lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
|
330
|
-
- lib/active_scaffold/bridges/validation_reflection/bridge.rb
|
331
|
-
- lib/active_scaffold/bridges/validation_reflection/lib/validation_reflection_bridge.rb
|
332
|
-
- lib/active_scaffold/bridges/file_column/bridge.rb
|
333
|
-
- lib/active_scaffold/bridges/file_column/lib/as_file_column_bridge.rb
|
334
|
-
- lib/active_scaffold/bridges/file_column/lib/file_column_helpers.rb
|
335
|
-
- lib/active_scaffold/bridges/file_column/lib/form_ui.rb
|
336
|
-
- lib/active_scaffold/bridges/file_column/lib/list_ui.rb
|
267
|
+
- lib/active_scaffold/bridges.rb
|
268
|
+
- lib/active_scaffold/bridges/ancestry.rb
|
269
|
+
- lib/active_scaffold/bridges/ancestry/ancestry_bridge.rb
|
270
|
+
- lib/active_scaffold/bridges/calendar_date_select.rb
|
271
|
+
- lib/active_scaffold/bridges/calendar_date_select/as_cds_bridge.rb
|
272
|
+
- lib/active_scaffold/bridges/cancan.rb
|
273
|
+
- lib/active_scaffold/bridges/cancan/cancan_bridge.rb
|
274
|
+
- lib/active_scaffold/bridges/carrierwave.rb
|
275
|
+
- lib/active_scaffold/bridges/carrierwave/carrierwave_bridge.rb
|
276
|
+
- lib/active_scaffold/bridges/carrierwave/carrierwave_bridge_helpers.rb
|
277
|
+
- lib/active_scaffold/bridges/carrierwave/form_ui.rb
|
278
|
+
- lib/active_scaffold/bridges/carrierwave/list_ui.rb
|
279
|
+
- lib/active_scaffold/bridges/country_helper.rb
|
280
|
+
- lib/active_scaffold/bridges/country_helper/country_helper_bridge.rb
|
281
|
+
- lib/active_scaffold/bridges/date_picker.rb
|
282
|
+
- lib/active_scaffold/bridges/date_picker/ext.rb
|
283
|
+
- lib/active_scaffold/bridges/date_picker/helper.rb
|
284
|
+
- lib/active_scaffold/bridges/dragonfly.rb
|
285
|
+
- lib/active_scaffold/bridges/dragonfly/dragonfly_bridge.rb
|
286
|
+
- lib/active_scaffold/bridges/dragonfly/dragonfly_bridge_helpers.rb
|
287
|
+
- lib/active_scaffold/bridges/dragonfly/form_ui.rb
|
288
|
+
- lib/active_scaffold/bridges/dragonfly/list_ui.rb
|
289
|
+
- lib/active_scaffold/bridges/file_column.rb
|
290
|
+
- lib/active_scaffold/bridges/file_column/as_file_column_bridge.rb
|
291
|
+
- lib/active_scaffold/bridges/file_column/file_column_helpers.rb
|
292
|
+
- lib/active_scaffold/bridges/file_column/form_ui.rb
|
293
|
+
- lib/active_scaffold/bridges/file_column/list_ui.rb
|
337
294
|
- lib/active_scaffold/bridges/file_column/test/functional/file_column_keep_test.rb
|
338
295
|
- lib/active_scaffold/bridges/file_column/test/mock_model.rb
|
339
296
|
- lib/active_scaffold/bridges/file_column/test/test_helper.rb
|
340
|
-
- lib/active_scaffold/bridges/
|
341
|
-
- lib/active_scaffold/bridges/
|
297
|
+
- lib/active_scaffold/bridges/paperclip.rb
|
298
|
+
- lib/active_scaffold/bridges/paperclip/form_ui.rb
|
299
|
+
- lib/active_scaffold/bridges/paperclip/list_ui.rb
|
300
|
+
- lib/active_scaffold/bridges/paperclip/paperclip_bridge.rb
|
301
|
+
- lib/active_scaffold/bridges/paperclip/paperclip_bridge_helpers.rb
|
302
|
+
- lib/active_scaffold/bridges/record_select.rb
|
303
|
+
- lib/active_scaffold/bridges/record_select/helpers.rb
|
342
304
|
- lib/active_scaffold/bridges/record_select/helpers.rb~
|
305
|
+
- lib/active_scaffold/bridges/semantic_attributes.rb
|
306
|
+
- lib/active_scaffold/bridges/semantic_attributes/column.rb
|
343
307
|
- lib/active_scaffold/bridges/shared/date_bridge.rb
|
344
|
-
- lib/active_scaffold/bridges/
|
308
|
+
- lib/active_scaffold/bridges/tiny_mce.rb
|
309
|
+
- lib/active_scaffold/bridges/tiny_mce/helpers.rb
|
345
310
|
- lib/active_scaffold/version.rb
|
346
311
|
- lib/active_scaffold/marked_model.rb
|
347
312
|
- lib/active_scaffold/extensions/action_controller_rendering.rb
|
@@ -359,40 +324,46 @@ files:
|
|
359
324
|
- lib/active_scaffold/extensions/unsaved_associated.rb
|
360
325
|
- lib/active_scaffold/extensions/unsaved_record.rb
|
361
326
|
- lib/active_scaffold/extensions/usa_state.rb
|
362
|
-
- lib/active_scaffold/extensions/
|
327
|
+
- lib/active_scaffold/extensions/cache_association.rb
|
363
328
|
- lib/active_scaffold/extensions/action_controller_rendering.rb~
|
364
329
|
- lib/active_scaffold/extensions/action_view_rendering.rb~
|
365
330
|
- lib/active_scaffold/extensions/cache_association.rb~
|
366
331
|
- lib/active_scaffold/extensions/reverse_associations.rb~
|
367
332
|
- lib/active_scaffold/extensions/routing_mapper.rb~
|
368
|
-
- lib/active_scaffold/extensions/unsaved_associated.rb~
|
369
|
-
- lib/active_scaffold/extensions/active_association_reflection.rb~
|
370
333
|
- lib/active_scaffold/paginator.rb
|
371
334
|
- lib/active_scaffold/responds_to_parent.rb
|
335
|
+
- lib/active_scaffold/engine.rb
|
372
336
|
- lib/active_scaffold/attribute_params.rb~
|
373
337
|
- lib/active_scaffold/finder.rb~
|
374
|
-
- lib/active_scaffold/constraints.rb~
|
375
338
|
- lib/generators/active_scaffold/USAGE
|
376
339
|
- lib/generators/active_scaffold/active_scaffold_generator.rb
|
377
340
|
- lib/generators/active_scaffold_controller/USAGE
|
378
341
|
- lib/generators/active_scaffold_controller/active_scaffold_controller_generator.rb
|
379
342
|
- lib/generators/active_scaffold_controller/templates/controller.rb
|
380
343
|
- lib/generators/active_scaffold_controller/templates/helper.rb
|
381
|
-
- lib/generators/active_scaffold_setup/USAGE
|
382
|
-
- lib/generators/active_scaffold_setup/active_scaffold_setup_generator.rb
|
383
|
-
- lib/active_scaffold_assets.rb
|
384
|
-
- lib/active_scaffold.rb~
|
385
344
|
- public/blank.html
|
386
345
|
- shoulda_macros/macros.rb
|
387
346
|
- MIT-LICENSE
|
388
347
|
- CHANGELOG
|
389
348
|
- README
|
390
349
|
- test/bridges/bridge_test.rb
|
350
|
+
- test/bridges/active_scaffold_dependent_protect_test.rb
|
351
|
+
- test/bridges/company.rb
|
352
|
+
- test/bridges/paperclip_test.rb
|
353
|
+
- test/bridges/tiny_mce_test.rb
|
354
|
+
- test/bridges/unobtrusive_date_picker_test.rb
|
355
|
+
- test/bridges/validation_reflection_test.rb
|
391
356
|
- test/config/base_test.rb
|
392
357
|
- test/config/create_test.rb
|
393
358
|
- test/config/list_test.rb
|
394
359
|
- test/config/show_test.rb
|
395
360
|
- test/config/update_test.rb
|
361
|
+
- test/config/core_test.rb
|
362
|
+
- test/config/delete_test.rb
|
363
|
+
- test/config/field_search_test.rb
|
364
|
+
- test/config/nested_test.rb
|
365
|
+
- test/config/search_test.rb
|
366
|
+
- test/config/subform_test.rb
|
396
367
|
- test/const_mocker.rb
|
397
368
|
- test/data_structures/action_columns_test.rb
|
398
369
|
- test/data_structures/action_link_test.rb
|
@@ -486,14 +457,26 @@ rubyforge_project:
|
|
486
457
|
rubygems_version: 1.8.10
|
487
458
|
signing_key:
|
488
459
|
specification_version: 3
|
489
|
-
summary: Rails 3 Version of activescaffold supporting prototype and jquery
|
460
|
+
summary: Rails 3.1 Version of activescaffold supporting prototype and jquery
|
490
461
|
test_files:
|
491
462
|
- test/bridges/bridge_test.rb
|
463
|
+
- test/bridges/active_scaffold_dependent_protect_test.rb
|
464
|
+
- test/bridges/company.rb
|
465
|
+
- test/bridges/paperclip_test.rb
|
466
|
+
- test/bridges/tiny_mce_test.rb
|
467
|
+
- test/bridges/unobtrusive_date_picker_test.rb
|
468
|
+
- test/bridges/validation_reflection_test.rb
|
492
469
|
- test/config/base_test.rb
|
493
470
|
- test/config/create_test.rb
|
494
471
|
- test/config/list_test.rb
|
495
472
|
- test/config/show_test.rb
|
496
473
|
- test/config/update_test.rb
|
474
|
+
- test/config/core_test.rb
|
475
|
+
- test/config/delete_test.rb
|
476
|
+
- test/config/field_search_test.rb
|
477
|
+
- test/config/nested_test.rb
|
478
|
+
- test/config/search_test.rb
|
479
|
+
- test/config/subform_test.rb
|
497
480
|
- test/const_mocker.rb
|
498
481
|
- test/data_structures/action_columns_test.rb
|
499
482
|
- test/data_structures/action_link_test.rb
|