Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Commit

Permalink
fixed again some issues with nils ini initialization. That should fix…
Browse files Browse the repository at this point in the history
… it finally.
  • Loading branch information
nirnanaaa committed Jan 16, 2014
1 parent 04ca4c6 commit a5dd03f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/gollum_rails/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class << self

attr_accessor :wiki_path

attr_accessor :wiki_options
attr_writer :wiki_options

attr_accessor :repository

Expand All @@ -28,6 +28,10 @@ class << self
attr_accessor :options


def wiki_options
return {} unless @wiki_options.kind_of? Hash
@wiki_options ||= {}
end
# Wiki startup options
def options=(options)
@options = options
Expand Down
2 changes: 1 addition & 1 deletion lib/gollum_rails/store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module ClassMethods
# Gets the wiki instance
def wiki
raise InitializationError, "Wiki path was not initialized!" if Setup.wiki_path.nil?
@wiki ||= Gollum::Wiki.new(Setup.wiki_path, {} )
@wiki ||= Gollum::Wiki.new(Setup.wiki_path, Setup.wiki_options )
end
end
# Gets the pages format
Expand Down

0 comments on commit a5dd03f

Please sign in to comment.