File: development.rb

package info (click to toggle)
tdiary-contrib 5.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,576 kB
  • ctags: 1,957
  • sloc: ruby: 16,900; lisp: 514; xml: 451; php: 61; sql: 40; sh: 35; makefile: 33
file content (16 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# development.rb - utility methods for plugin developers
#
# Copyright (c) 2011 MATSUOKA Kohei <kmachu@gmail.com>
# You can redistribute it and/or modify it under GPL2.
#

# load standard version jquery.js instead of jquery.min.js
alias :jquery_tag_original :jquery_tag
def jquery_tag
	jquery_tag_original.gsub(/\.min/, '')
end

# js cache clear by seconds.
def script_tag_query_string
	"?#{TDIARY_VERSION}#{Time::now.strftime('%Y%m%d%H%M%S')}"
end