lib/lolita-translation/builder/abstract_builder.rb in lolita-translation-0.6.3 vs lib/lolita-translation/builder/abstract_builder.rb in lolita-translation-0.7.0
- old
+ new
@@ -41,27 +41,27 @@
end
def override_klass_attributes method_names
method_names.each do |method_name, attribute|
validate_attribute_method_and_attribute(method_name, attribute)
- base_klass.instance_eval do
- define_method(method_name) do
+ base_klass.instance_eval do
+ define_method(method_name) do
translation_record.attribute(attribute)
end
end
end
- end
+ end
private
def configuration_attributes
@configuration && @configuration.attributes
end
def validate_attribute_method_and_attribute(method_name, attribute)
raise ArgumentError.new("#{method_name} is not valid attribute reader name") unless method_name
- raise ArgumentError.new("#{attribute} is not valid attribute name") unless attribute
+ raise ArgumentError.new("#{attribute} is not valid attribute name") unless attribute
end
def implementation_warn
warn("No implementation for #{self}")
end
@@ -98,6 +98,6 @@
end
end
end
-end
+end
\ No newline at end of file