Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
miry committed Apr 26, 2013
1 parent 91cc15c commit e726972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails_admin/config/fields/factories/enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
_method_name = "#{properties[:name]}_enum"

#NOTICE: _method_name could be `to_enum` and this method defined in Object.
if !Object.respond_to? _method_name && \
if !Object.respond_to?(_method_name) && \
(_model.respond_to?(_method_name) || \
_model.method_defined?(_method_name))
fields << RailsAdmin::Config::Fields::Types::Enum.new(parent, properties[:name], properties)
Expand Down

0 comments on commit e726972

Please sign in to comment.