lib/imgkit/configuration.rb in imgkit-1.3.7 vs lib/imgkit/configuration.rb in imgkit-1.3.8
- old
+ new
@@ -3,11 +3,11 @@
attr_accessor :meta_tag_prefix, :wkhtmltoimage, :default_options, :default_format
def initialize
@meta_tag_prefix = 'imgkit-'
@wkhtmltoimage = '/usr/local/bin/wkhtmltoimage'
- @default_options = {}
+ @default_options = {:height => 1000}
@default_format = :jpg
end
end
class << self
@@ -19,16 +19,16 @@
#
# @example
# IMGKit.configure do |config|
# config.wkhtmltoimage = '/usr/bin/wkhtmltoimage'
# end
-
+
def self.configuration
@configuration ||= Configuration.new
end
-
-
+
+
def self.configure
- self.configuration
+ self.configuration
yield(configuration)
end
end