Created
July 25, 2013 11:41
-
-
Save MagmaRules/6078928 to your computer and use it in GitHub Desktop.
Changes for redmine using Oracle DB
This file contains 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
- <p><%= f.text_field :start_date, :size => 10, :disabled => [email protected]?, :required => @issue.required_attribute?('start_date') %><%= calendar_for('issue_start_date') if @issue.leaf? %></p> | |
+ <p><%= f.text_field :start_date, :size => 10, :disabled => [email protected]?, :required => @issue.required_attribute?('start_date'), :value => @issue.start_date ? @issue.start_date.strftime(Setting.date_format) : "" %><%= calendar_for('issue_start_date') if @issue.leaf? %></p> |
This file contains 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
ActiveSupport.on_load(:active_record) do | |
ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.class_eval do | |
self.emulate_dates_by_column_name = true | |
end | |
end |
This file contains 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
def has_column?(column) | |
+ return false if !column_names.kind_of?(Array) | |
column_names && column_names.include?(column.is_a?(QueryColumn) ? column.name : column) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment