Use private in disabled helpers, as in the others

This commit is contained in:
Carlos Antonio da Silva 2011-12-10 16:07:28 -02:00
parent 6675ee1ea8
commit 04778b99b4
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,8 @@
module SimpleForm
module Helpers
module Disabled
private
def has_disabled?
options[:disabled] == true
end
@ -10,4 +12,4 @@ module SimpleForm
end
end
end
end
end

View File

@ -13,8 +13,8 @@ module SimpleForm
include SimpleForm::Components::Hints
include SimpleForm::Components::HTML5
include SimpleForm::Components::LabelInput
include SimpleForm::Components::MinMax
include SimpleForm::Components::Maxlength
include SimpleForm::Components::MinMax
include SimpleForm::Components::Pattern
include SimpleForm::Components::Placeholders
include SimpleForm::Components::Readonly
@ -149,7 +149,6 @@ module SimpleForm
I18n.t(lookups.shift, :scope => :"simple_form.#{namespace}", :default => lookups).presence
end
end
end
end