Sha256: 053a057947be6550a9347245ce84bf34dc654a53bb07a1155ab9d663aae3cc92

Contents?: true

Size: 269 Bytes

Versions: 31

Compression:

Stored size: 269 Bytes

Contents

# all acts with actions on self and on cards included in self (ie, acts shown in history)
def history_acts
  @history_acts ||= Act.all_with_actions_on(history_card_ids, true).order id: :desc
end

def draft_acts
  drafts.created_by(Card::Auth.current_id).map(&:act)
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
card-mod-history-0.18.1 set/all/history/acts.rb
card-mod-history-0.18.0 set/all/history/acts.rb
card-mod-history-0.17.0 set/all/history/acts.rb
card-mod-history-0.16.0 set/all/history/acts.rb
card-mod-history-0.15.6 set/all/history/acts.rb
card-mod-history-0.15.5 set/all/history/acts.rb
card-mod-history-0.15.4 set/all/history/acts.rb
card-mod-history-0.15.3 set/all/history/acts.rb
card-mod-history-0.15.2.pre1 set/all/history/acts.rb
card-mod-history-0.15.1.1 set/all/history/acts.rb
card-mod-history-0.15.1 set/all/history/acts.rb
card-mod-history-0.15.0 set/all/history/acts.rb
card-mod-history-0.14.2 set/all/history/acts.rb
card-mod-history-0.14.1 set/all/history/acts.rb
card-mod-history-0.14.0 set/all/history/acts.rb
card-mod-history-0.13.4 set/all/history/acts.rb
card-mod-history-0.13.3 set/all/history/acts.rb
card-mod-history-0.13.2 set/all/history/acts.rb
card-mod-history-0.13.1 set/all/history/acts.rb
card-mod-history-0.13.0 set/all/history/acts.rb