Skip to content

Commit

Permalink
fixed my boneheaded assets-breaking bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ethn committed Mar 22, 2024
1 parent 1a0adde commit e9480de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/assets/lib/card/assets.rb
Expand Up @@ -7,7 +7,7 @@ class << self
# FIXME: if we need this (not sure we do? see below), these types should probably
# be in a basket so that monkeys can add them.
def inputter_types
%i[java_script coffee_script css scss]
[JavaScriptID, CoffeeScriptID, CssID, ScssID]
end

def refresh force: false
Expand Down Expand Up @@ -67,13 +67,13 @@ def asset_outputters
# and MOD/assets/script directories respectively
def standard_inputters
@standard_inputter_ids ||=
Card.search left: { type: :mod }, right: %i[script style], return: :id
Card.search left: { type: :mod }, right_id: [StyleID, ScriptID], return: :id
@standard_inputter_ids.map(&:card)
end

# standalone cards, NOT in mod assets directories
def nonstandard_inputters
Card.search type: inputter_types.unshift("in")
Card.search type_id: inputter_types.unshift("in")
end

def refresh?
Expand Down

0 comments on commit e9480de

Please sign in to comment.