Created
July 7, 2009 21:25
-
-
Save mhfs/142386 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/tw_date_picker.rb | |
module TwDatePicker | |
module TwDatePickerHelper | |
end | |
module AssetTagHelper | |
def tw_date_picker_includes(options = {}) | |
javascript_include_tag('tw_date_picker', options) | |
end | |
end | |
end | |
# environment.rb | |
ActionView::Base.send :include, TwDatePicker::AssetTagHelper | |
ActionView::Helpers::AssetTagHelper.send :include, TwDatePicker::AssetTagHelper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment