lib/ajaxlibs/library.rb in ajaxlibs-0.1.7 vs lib/ajaxlibs/library.rb in ajaxlibs-0.1.8

- old
+ new

@@ -38,12 +38,14 @@ # Initialize a new instance of a specific library. # <tt>options</tt> can take the following arguments : # * <tt>:version</tt> : specify a version (ex: "1.8.1"). # * <tt>:source</tt> : force the source to use, default to <tt>:local</tt>. # * <tt>:secure</tt> : specify if the generated link should be secured (https) or not. Default is <tt>false</tt>. + # * <tt>:minified</tt> : <tt>true</tt> if you want a minified version of the javascript library, <tt>false</tt> otherwise. Default is <tt>true</tt>. def initialize(options = {}) @version = check_version_or_latest_version(options[:version]) @source = options[:source] || :local + @minified = options[:minified].nil? ? true : options[:minified] @secure = options[:secure] || false end # Returns requirements for a library (for example, prototype for scriptaculous) def requires \ No newline at end of file