Module: JqueryCdn::RailsHelpers
- Defined in:
- lib/jquery-cdn/railties.rb
Instance Method Summary collapse
-
#include_jquery(options = { }) ⇒ Object
Return <script> tags to add jQuery in Rails.
Instance Method Details
#include_jquery(options = { }) ⇒ Object
Return <script> tags to add jQuery in Rails
8 9 10 11 12 |
# File 'lib/jquery-cdn/railties.rb', line 8 def include_jquery( = { }) = { env: Rails.env.to_sym }.merge() JqueryCdn.local_url = proc { javascript_path("jquery.js") } JqueryCdn.include_jquery().html_safe end |