Reorganize assignments

This commit is contained in:
Carlos Antonio da Silva 2013-11-06 02:52:30 -02:00
parent 146cff7ec6
commit 7f743fd161
1 changed files with 8 additions and 8 deletions

View File

@ -50,14 +50,14 @@ module SimpleForm
def initialize(builder, attribute_name, column, input_type, options = {})
super
options = options.dup
@builder = builder
@attribute_name = attribute_name
@column = column
@input_type = input_type
@reflection = options.delete(:reflection)
@options = options.reverse_merge!(self.class.default_options)
@required = calculate_required
options = options.dup
@builder = builder
@attribute_name = attribute_name
@column = column
@input_type = input_type
@reflection = options.delete(:reflection)
@options = options.reverse_merge!(self.class.default_options)
@required = calculate_required
# Notice that html_options_for receives a reference to input_html_classes.
# This means that classes added dynamically to input_html_classes will