Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Neater initialization.

  • Loading branch information...
commit 1f812e4bb07c2e632d001ea1e19eeaf6a93d07d2 1 parent 75cb18d
@dougal authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/acts_as_indexed/configuration.rb
View
5 lib/acts_as_indexed/configuration.rb
@@ -42,10 +42,7 @@ def initialize
# Since we cannot expect Rails to be available on load, it is best to put
# off setting the index_file attribute until as late as possible.
def index_file
- if @index_file.nil?
- @index_file = default_index_file
- end
- @index_file
+ @index_file ||= default_index_file
end
def index_file=(file_path)
Please sign in to comment.
Something went wrong with that request. Please try again.