Revision 09e5d8d0
Added by Ivan Necas about 10 years ago
app/lib/actions/middleware/record_fixtures.rb | ||
---|---|---|
|
||
def dump(variant)
|
||
fail unless [:input, :output].include? variant
|
||
File.write(log_file(variant), YAML.dump(self.action.send(variant)))
|
||
File.write(log_file(variant), YAML.dump(action.send(variant)))
|
||
end
|
||
|
||
def log_base
|
||
... | ... | |
end
|
||
|
||
def log_subdirs
|
||
action.action_class.name.underscore
|
||
action.class.name.underscore
|
||
end
|
||
|
||
def log_file(variant)
|
Also available in: Unified diff
Fix record fixtures middleware