Module: FoggyBottom::Columns::Case
- Included in:
- FoggyBottom::Case
- Defined in:
- lib/foggy_bottom/columns.rb
Constant Summary collapse
- ALL_COLUMNS =
%w( ixBug ixBugParent ixBugChildren tags fOpen sTitle sOriginalTitle sLatestTextSummary ixBugEventLatestText ixProject sProject ixArea sArea ixGroup ixPersonAssignedTo sPersonAssignedTo sEmailAssignedTo ixPersonOpenedBy ixPersonResolvedBy ixPersonClosedBy ixPersonLastEditedBy ixStatus sStatus ixPriority sPriority ixFixFor sFixFor dtFixFor sVersion sComputer hrsOrigEst hrsCurrEst hrsElapsed c sCustomerEmail ixMailbox ixCategory sCategory dtOpened dtResolved dtClosed ixBugEventLatest dtLastUpdated fReplied fForwarded sTicket ixDiscussTopic dtDue sReleaseNotes ixBugEventLastView dtLastView ixRelatedBugs sScoutDescription sScoutMessage fScoutStopReporting fSubscribed )
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/foggy_bottom/columns.rb', line 33 def self.included(base) base.class_eval do ALL_COLUMNS.each do |column| define_method(column) do @attributes[column] end define_method("#{column}=") do |arg| send("#{column}_will_change!") unless send(column) == arg @attributes[column] = arg end end end end |