Sha256: 3fd0d8895d524da9de7dcf1a0e42755e6ab6fbc065878ffe452c8d5796a616f1
Contents?: true
Size: 447 Bytes
Versions: 7
Compression:
Stored size: 447 Bytes
Contents
module Admin module PublicHelper def quick_edit(*args) options = args.extract_options! options[:color] ||= '#000' options[:link] ||= admin_quick_edit_path query = options.dup [ :color, :link ].each { |o| query.delete(o) } <<-HTML <script type="text/javascript"> document.write('<script type="text/javascript" src="#{options[:link]}?#{query.to_query}" />'); </script> HTML end end end
Version data entries
7 entries across 7 versions & 1 rubygems