lib/jquery_cheats.rb in jquery_cheats-0.1.0 vs lib/jquery_cheats.rb in jquery_cheats-1.0.0

- old
+ new

@@ -1,21 +1,21 @@ module JQueryCheats - class HoverImage + require 'railtie' if defined?(Rails) + module HoverImage #class used to do a quick Hover image - attr_accessor :image_tag - class << self + #class << self def mouseoverimage(initimage,hoverimage) - @image_tag ="" - @image_tag = "<img src=\"#{initimage}\" alt=\"image\" onmouseover=\"$(this).attr('src','#{hoverimage}')\" onmouseout=\"$(this).attr('src','#{initimage}')\">" - return @image_tag.html_safe + @cheats_image_tag ="" + @cheats_image_tag = "<img src=\"#{initimage}\" alt=\"image\" onmouseover=\"$(this).attr('src','#{hoverimage}')\" onmouseout=\"$(this).attr('src','#{initimage}')\">" + return @cheats_image_tag.html_safe end def initialize() end - end#end self + #end#end self end end \ No newline at end of file